Class: Organizer::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Response

Returns a new instance of Response.



5
6
7
# File 'lib/organizer/response.rb', line 5

def initialize(json)
  @body = JSON.parse(json)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/organizer/response.rb', line 3

def body
  @body
end