class GoogleShortLinks::Parser
Parses the JSON that Google Short Links returns.
Constants
- SupportedFormats
Google returns the JSON response as a text/html mime type. This class only supports JSON currently.
Public Instance Methods
json()
click to toggle source
Decodes JSON into a hash.
# File lib/google_short_links/parser.rb, line 11 def json MultiJson.decode(body) end