nanenj icon

Contrived example for documentation

nanenj | PRO | 07/05/17 02:15:58 AM UTC | 0 ⭐ | 259 πŸ‘οΈ | Never ⏰ | []
Ruby |

450 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

# Parses response from third party API
# @params response [JSON] the raw json response from third party API
# * :status [String] string representation of the response status
# * :data [Hash]
# * * :user_id [Integer] ID of the user object returned
# * * :name [String] Name of the user returned
# @return [Hash] Hash of the data returned
# * :user_id [Integer]
# * :name [String]
def user_hash_helper(response)
Β  JSON.parse(response)["data"]
end

Comments