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