Exception: Redox::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/redox.rb

Direct Known Subclasses

AuthenticationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: nil, body: nil, message: nil) ⇒ Error

Returns a new instance of Error.



39
40
41
42
43
# File 'lib/redox.rb', line 39

def initialize(status: nil, body: nil, message: nil)
  self.status = status
  self.body = body
  self.message = message
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



36
37
38
# File 'lib/redox.rb', line 36

def body
  @body
end

#messageObject

Returns the value of attribute message.



37
38
39
# File 'lib/redox.rb', line 37

def message
  @message
end

#statusObject

Returns the value of attribute status.



35
36
37
# File 'lib/redox.rb', line 35

def status
  @status
end