Class: Errorgap::Notifier::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/errorgap/notifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



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

def body
  @body
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



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

def error
  @error
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


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

def success?
  error.nil? && status.to_i.between?(200, 299)
end