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(data) ⇒ Response

Returns a new instance of Response.



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

def initialize(data)
	@body = JSON.parse(data.env.body)
	@url = data.env.url
	@method = data.env.method
	@status = data.env.status
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

#methodObject

Returns the value of attribute method.



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

def method
  @method
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end