Class: Errorgap::Notifier::Response
- Inherits:
-
Struct
- Object
- Struct
- Errorgap::Notifier::Response
- Defined in:
- lib/errorgap/notifier.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#error ⇒ Object
Returns the value of attribute error.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
9 10 11 |
# File 'lib/errorgap/notifier.rb', line 9 def body @body end |
#error ⇒ Object
Returns the value of attribute error
9 10 11 |
# File 'lib/errorgap/notifier.rb', line 9 def error @error end |
#status ⇒ Object
Returns the value of attribute status
9 10 11 |
# File 'lib/errorgap/notifier.rb', line 9 def status @status end |
Instance Method Details
#success? ⇒ Boolean
10 11 12 |
# File 'lib/errorgap/notifier.rb', line 10 def success? error.nil? && status.to_i.between?(200, 299) end |