Class: Coneco::Response
- Inherits:
-
Object
- Object
- Coneco::Response
- Defined in:
- lib/coneco/client.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(h, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(h, body) ⇒ Response
Returns a new instance of Response.
49 50 51 52 |
# File 'lib/coneco/client.rb', line 49 def initialize(h, body) @header = ResponseHeader.new(h['Header']) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
48 49 50 |
# File 'lib/coneco/client.rb', line 48 def body @body end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
48 49 50 |
# File 'lib/coneco/client.rb', line 48 def header @header end |