Exception: GmoPayment::Errors::RequestInvalidItemError

Inherits:
GmoPayment::Errors show all
Defined in:
lib/gmo_payment/errors.rb

Overview

Error of request body has invalid items.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(called_method = nil, items = {}) ⇒ RequestInvalidItemError

Returns a new instance of RequestInvalidItemError.

Parameters:

  • called_method (Symbol) (defaults to: nil)
  • items (Hash) (defaults to: {})


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_methodObject



43
44
45
# File 'lib/gmo_payment/errors.rb', line 43

def called_method
  @called_method
end

#itemsObject



43
# File 'lib/gmo_payment/errors.rb', line 43

attr_accessor :called_method, :items