Class: EC2::Common::HTTP::Response
- Inherits:
-
Curl::Response
- Object
- Curl::Response
- EC2::Common::HTTP::Response
- Defined in:
- lib/ec2/common/http.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from Curl::Response
Instance Method Summary collapse
-
#initialize(code, type, body = nil) ⇒ Response
constructor
A new instance of Response.
Methods inherited from Curl::Response
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
35 36 37 |
# File 'lib/ec2/common/http.rb', line 35 def body @body end |