Class: SidekiqVigil::Notifier::HttpTransport::Response
- Inherits:
-
Data
- Object
- Data
- SidekiqVigil::Notifier::HttpTransport::Response
- Defined in:
- lib/sidekiq_vigil/notifier/http_transport.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
9 10 11 |
# File 'lib/sidekiq_vigil/notifier/http_transport.rb', line 9 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code
9 10 11 |
# File 'lib/sidekiq_vigil/notifier/http_transport.rb', line 9 def code @code end |
Instance Method Details
#success? ⇒ Boolean
10 11 12 |
# File 'lib/sidekiq_vigil/notifier/http_transport.rb', line 10 def success? code.to_i.between?(200, 299) end |