Class: LogSnag::Result
- Inherits:
-
Struct
- Object
- Struct
- LogSnag::Result
- Defined in:
- lib/logsnag/result.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
4 5 6 |
# File 'lib/logsnag/result.rb', line 4 def data @data end |
#error_message ⇒ Object
Returns the value of attribute error_message
4 5 6 |
# File 'lib/logsnag/result.rb', line 4 def @error_message end |
#status_code ⇒ Object
Returns the value of attribute status_code
4 5 6 |
# File 'lib/logsnag/result.rb', line 4 def status_code @status_code end |
#success ⇒ Object
Returns the value of attribute success
4 5 6 |
# File 'lib/logsnag/result.rb', line 4 def success @success end |
Instance Method Details
#error? ⇒ Boolean
9 10 11 |
# File 'lib/logsnag/result.rb', line 9 def error? !success end |
#success? ⇒ Boolean
5 6 7 |
# File 'lib/logsnag/result.rb', line 5 def success? success end |