Exception: YandexMoney::AcceptTransferError
- Defined in:
- lib/yandex_money/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg, attemps = nil) ⇒ AcceptTransferError
constructor
A new instance of AcceptTransferError.
- #message ⇒ Object
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
#message ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/yandex_money/exceptions.rb', line 42 def if @attemps super + ", attemps available: #{@attemps}" else super end end |