Exception: Tienda::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Tienda::Error
- Defined in:
- lib/tienda/error.rb
Direct Known Subclasses
Tienda::Errors::InappropriateDeliveryService, Tienda::Errors::InsufficientStockToFulfil, Tienda::Errors::InvalidConfiguration, Tienda::Errors::NotEnoughStock, Tienda::Errors::PaymentDeclined, Tienda::Errors::RefundFailed, Tienda::Errors::UnorderableItem
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
- #options ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Error
Returns a new instance of Error.
3 4 5 6 7 8 9 |
# File 'lib/tienda/error.rb', line 3 def initialize( = {}) if .is_a?(String) @options = {:message => } else @options = end end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/tienda/error.rb', line 11 def @options[:message] end |
#options ⇒ Object
15 16 17 |
# File 'lib/tienda/error.rb', line 15 def @options end |