Exception: GmoPayment::Errors::RequestMissingItemError

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

Overview

Error of request body has missing items.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(called_method = nil, items = []) ⇒ RequestMissingItemError

Returns a new instance of RequestMissingItemError.

Parameters:

  • called_method (Symbol) (defaults to: nil)
  • items (Array) (defaults to: [])


32
33
34
35
36
# File 'lib/gmo_payment/errors.rb', line 32

def initialize(called_method = nil, items = [])
  self.called_method = called_method
  self.items = items
  super(items.join(', '))
end

Instance Attribute Details

#called_methodObject



28
29
30
# File 'lib/gmo_payment/errors.rb', line 28

def called_method
  @called_method
end

#itemsObject



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

attr_accessor :called_method, :items