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.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#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, headers) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(method, request_uri, status, body, headers) ⇒ Response
Returns a new instance of Response.
43 44 45 46 47 48 49 |
# File 'lib/grackle/transport.rb', line 43 def initialize(method,request_uri,status,body,headers) self.method = method self.request_uri = request_uri self.status = status self.headers = headers self.body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
41 42 43 |
# File 'lib/grackle/transport.rb', line 41 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
41 42 43 |
# File 'lib/grackle/transport.rb', line 41 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method.
41 42 43 |
# File 'lib/grackle/transport.rb', line 41 def method @method end |
#request_uri ⇒ Object
Returns the value of attribute request_uri.
41 42 43 |
# File 'lib/grackle/transport.rb', line 41 def request_uri @request_uri end |
#status ⇒ Object
Returns the value of attribute status.
41 42 43 |
# File 'lib/grackle/transport.rb', line 41 def status @status end |