Exception: Shopping::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Shopping::Error
- Defined in:
- lib/api_helpers/shopping.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code) ⇒ Error
Returns a new instance of Error.
10 11 12 13 |
# File 'lib/api_helpers/shopping.rb', line 10 def initialize(, code) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/api_helpers/shopping.rb', line 9 def code @code end |