Exception: YandexMoney::FieldNotSetError

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

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ FieldNotSetError

Returns a new instance of FieldNotSetError.



17
18
19
# File 'lib/yandex_money/exceptions.rb', line 17

def initialize(field)
  @field = field
end

Instance Method Details

#messageObject



21
22
23
# File 'lib/yandex_money/exceptions.rb', line 21

def message
  "Field '#{@field}' not set!"
end