Exception: Square::Connect::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Square::Connect::Error
- Defined in:
- lib/square/connect/error.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(status, error) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, error) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 |
# File 'lib/square/connect/error.rb', line 6 def initialize(status, error) self.status = status self.type = error[:type] super error[:message] end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/square/connect/error.rb', line 4 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/square/connect/error.rb', line 4 def type @type end |