Class: Grackle::Response
- Inherits:
-
Object
- Object
- Grackle::Response
- Defined in:
- lib/grackle/transport.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#method ⇒ Object
Returns the value of attribute method.
-
#request_uri ⇒ Object
Returns the value of attribute request_uri.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(method, request_uri, status, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(method, request_uri, status, body) ⇒ Response
Returns a new instance of Response.
6 7 8 9 10 11 |
# File 'lib/grackle/transport.rb', line 6 def initialize(method,request_uri,status,body) self.method = method self.request_uri = request_uri self.status = status self.body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/grackle/transport.rb', line 4 def body @body end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/grackle/transport.rb', line 4 def method @method end |
#request_uri ⇒ Object
Returns the value of attribute request_uri.
4 5 6 |
# File 'lib/grackle/transport.rb', line 4 def request_uri @request_uri end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/grackle/transport.rb', line 4 def status @status end |