Skip to content

Use browser API or Ruby stdlib? #116

Answered by rubys
yerlaser asked this question in Q&A
Discussion options

You must be logged in to vote

I use the browser API, and pretend that the JSON returned is an OpenStruct. Each of the following transpire to the same thing:

json['field']
json[:field]
json.field

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yerlaser
Comment options

Answer selected by yerlaser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants