Exception: YandexMoney::AcceptTransferError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/yandex_money/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg, attemps = nil) ⇒ AcceptTransferError

Returns a new instance of AcceptTransferError.



37
38
39
40
# File 'lib/yandex_money/exceptions.rb', line 37

def initialize(msg, attemps = nil)
  @msg = msg
  @attemps = attemps
end

Instance Method Details

#messageObject



42
43
44
45
46
47
48
# File 'lib/yandex_money/exceptions.rb', line 42

def message
  if @attemps
    super + ", attemps available: #{@attemps}"
  else
    super
  end
end