Class: TxghServer::Response
- Inherits:
-
Object
- Object
- TxghServer::Response
- Defined in:
- lib/txgh-server/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body, error = nil) ⇒ Response
constructor
A new instance of Response.
- #streaming? ⇒ Boolean
Constructor Details
#initialize(status, body, error = nil) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/txgh-server/response.rb', line 5 def initialize(status, body, error = nil) @status = status @body = body @error = error end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/txgh-server/response.rb', line 3 def body @body end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
3 4 5 |
# File 'lib/txgh-server/response.rb', line 3 def error @error end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/txgh-server/response.rb', line 3 def status @status end |
Instance Method Details
#streaming? ⇒ Boolean
11 12 13 |
# File 'lib/txgh-server/response.rb', line 11 def streaming? false end |