Class: Clayful::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, data = nil, headers = nil) ⇒ Response

Returns a new instance of Response.



9
10
11
12
13
14
15
# File 'lib/response.rb', line 9

def initialize(status = nil, data = nil, headers = nil)

	@status = status
	@data = data
	@headers = headers

end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

#headersObject (readonly)

Returns the value of attribute headers.



7
8
9
# File 'lib/response.rb', line 7

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end