Class: T::Response
- Inherits:
-
Object
- Object
- T::Response
- Defined in:
- lib/tinternet/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(code, headers, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(code, headers, body) ⇒ Response
Returns a new instance of Response.
26 27 28 |
# File 'lib/tinternet/request.rb', line 26 def initialize(code, headers, body) @code, @headers, @body = code, headers, body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
24 25 26 |
# File 'lib/tinternet/request.rb', line 24 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
24 25 26 |
# File 'lib/tinternet/request.rb', line 24 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
24 25 26 |
# File 'lib/tinternet/request.rb', line 24 def headers @headers end |