Class: Clayful::Response
- Inherits:
-
Object
- Object
- Clayful::Response
- Defined in:
- lib/response.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = nil, data = nil, headers = nil) ⇒ Response
constructor
A new instance of Response.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/response.rb', line 6 def data @data end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
7 8 9 |
# File 'lib/response.rb', line 7 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/response.rb', line 5 def status @status end |