Class: EC2::Common::HTTP::Response

Inherits:
Curl::Response show all
Defined in:
lib/ec2/common/http.rb

Instance Attribute Summary collapse

Attributes inherited from Curl::Response

#code, #type

Instance Method Summary collapse

Methods inherited from Curl::Response

#redirect?, #success?, #text?

Constructor Details

#initialize(code, type, body = nil) ⇒ Response

Returns a new instance of Response.



36
37
38
39
# File 'lib/ec2/common/http.rb', line 36

def initialize(code, type, body=nil)
  super code, type
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



35
36
37
# File 'lib/ec2/common/http.rb', line 35

def body
  @body
end