Class: SidekiqVigil::Notifier::HttpTransport::Response

Inherits:
Data
  • Object
show all
Defined in:
lib/sidekiq_vigil/notifier/http_transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



9
10
11
# File 'lib/sidekiq_vigil/notifier/http_transport.rb', line 9

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



9
10
11
# File 'lib/sidekiq_vigil/notifier/http_transport.rb', line 9

def code
  @code
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/sidekiq_vigil/notifier/http_transport.rb', line 10

def success?
  code.to_i.between?(200, 299)
end