Class: Dodgeball::Client::Response
- Inherits:
-
Object
- Object
- Dodgeball::Client::Response
- Defined in:
- lib/dodgeball/client/response.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = 200, response_body = nil) ⇒ Response
constructor
public: Simple class to wrap responses from the API.
Constructor Details
#initialize(status = 200, response_body = nil) ⇒ Response
public: Simple class to wrap responses from the API
11 12 13 14 |
# File 'lib/dodgeball/client/response.rb', line 11 def initialize(status = 200, response_body = nil) @status = status @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
6 7 8 |
# File 'lib/dodgeball/client/response.rb', line 6 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/dodgeball/client/response.rb', line 6 def status @status end |