Class: BugBunny::Response
- Inherits:
-
Object
- Object
- BugBunny::Response
- Defined in:
- lib/bug_bunny/response.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#response ⇒ Object
Returns the value of attribute response.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(attrs = {}) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/bug_bunny/response.rb', line 5 def initialize(attrs={}) @status = attrs[:status] @response = attrs[:response] @exception = attrs[:exception] end |
Instance Attribute Details
#exception ⇒ Object
Returns the value of attribute exception.
3 4 5 |
# File 'lib/bug_bunny/response.rb', line 3 def exception @exception end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/bug_bunny/response.rb', line 3 def response @response end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/bug_bunny/response.rb', line 3 def status @status end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/bug_bunny/response.rb', line 11 def success? @status end |