Class: Kagerator::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/kagerator/response.rb

Instance Method Summary collapse

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_jsonObject



11
12
13
# File 'lib/kagerator/response.rb', line 11

def from_json
  SymbolTable.new(::JSON.parse(@response))
end