Class: URL::ASJSONHandler

Inherits:
JSONHandler show all
Defined in:
lib/url/handlers/as_json_handler.rb

Instance Attribute Summary

Attributes inherited from JSONHandler

#str

Instance Method Summary collapse

Methods inherited from JSONHandler

#initialize

Constructor Details

This class inherits a constructor from URL::JSONHandler

Instance Method Details

#parseObject



4
5
6
# File 'lib/url/handlers/as_json_handler.rb', line 4

def parse
  ActiveSupport::JSON.decode(@str)
end