Exception: GmoPayment::Errors::RequestInvalidItemError
- Inherits:
-
GmoPayment::Errors
- Object
- StandardError
- GmoPayment::Errors
- GmoPayment::Errors::RequestInvalidItemError
- Defined in:
- lib/gmo_payment/errors.rb
Overview
Error of request body has invalid items.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(called_method = nil, items = {}) ⇒ RequestInvalidItemError
constructor
A new instance of RequestInvalidItemError.
Constructor Details
#initialize(called_method = nil, items = {}) ⇒ RequestInvalidItemError
Returns a new instance of RequestInvalidItemError.
47 48 49 50 51 |
# File 'lib/gmo_payment/errors.rb', line 47 def initialize(called_method = nil, items = {}) self.called_method = called_method self.items = items super(items.map { |k, v| ":#{k} (#{v})" }.join(', ')) end |
Instance Attribute Details
#called_method ⇒ Object
43 44 45 |
# File 'lib/gmo_payment/errors.rb', line 43 def called_method @called_method end |
#items ⇒ Object
43 |
# File 'lib/gmo_payment/errors.rb', line 43 attr_accessor :called_method, :items |