Class: Kagerator::Response
- Inherits:
-
Object
- Object
- Kagerator::Response
- Defined in:
- lib/kagerator/response.rb
Instance Method Summary collapse
- #from_json ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
7 8 9 |
# File 'lib/kagerator/response.rb', line 7 def initialize(response) @response = response end |
Instance Method Details
#from_json ⇒ Object
11 12 13 |
# File 'lib/kagerator/response.rb', line 11 def from_json SymbolTable.new(::JSON.parse(@response)) end |