Class: SplitIoClient::Engine::Models::SplitHttpResponse
- Inherits:
-
Object
- Object
- SplitIoClient::Engine::Models::SplitHttpResponse
- Defined in:
- lib/splitclient-rb/engine/models/split_http_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body, success) ⇒ SplitHttpResponse
constructor
A new instance of SplitHttpResponse.
- #success? ⇒ Boolean
Constructor Details
#initialize(status, body, success) ⇒ SplitHttpResponse
Returns a new instance of SplitHttpResponse.
7 8 9 10 11 |
# File 'lib/splitclient-rb/engine/models/split_http_response.rb', line 7 def initialize(status, body, success) @status = status @body = body @success = success end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
5 6 7 |
# File 'lib/splitclient-rb/engine/models/split_http_response.rb', line 5 def body @body end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/splitclient-rb/engine/models/split_http_response.rb', line 5 def status @status end |
Instance Method Details
#success? ⇒ Boolean
13 14 15 |
# File 'lib/splitclient-rb/engine/models/split_http_response.rb', line 13 def success? @success end |