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.



47
48
49
50
# File 'lib/yandex_money/exceptions.rb', line 47

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

Instance Method Details

#messageObject



52
53
54
55
56
57
58
# File 'lib/yandex_money/exceptions.rb', line 52

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