Class: Coneco::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



48
49
50
# File 'lib/coneco/client.rb', line 48

def body
  @body
end

#headerObject (readonly)

Returns the value of attribute header.



48
49
50
# File 'lib/coneco/client.rb', line 48

def header
  @header
end