Class: Inbox::APIError
Instance Attribute Summary collapse
-
#error_type ⇒ Object
Returns the value of attribute error_type.
-
#server_error ⇒ Object
Returns the value of attribute server_error.
Instance Method Summary collapse
-
#initialize(type, error, server_error = nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(type, error, server_error = nil) ⇒ APIError
Returns a new instance of APIError.
35 36 37 38 39 |
# File 'lib/inbox.rb', line 35 def initialize(type, error, server_error = nil) super(error) self.error_type = type self.server_error = server_error end |
Instance Attribute Details
#error_type ⇒ Object
Returns the value of attribute error_type.
32 33 34 |
# File 'lib/inbox.rb', line 32 def error_type @error_type end |
#server_error ⇒ Object
Returns the value of attribute server_error.
33 34 35 |
# File 'lib/inbox.rb', line 33 def server_error @server_error end |