Exception: YeshuaCrm::Currency::MissingAttributeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yeshua_crm/currency.rb

Overview

Thrown when a Currency has been registered without all the attributes which are required for the current action.

Instance Method Summary collapse

Constructor Details

#initialize(method, currency, attribute) ⇒ MissingAttributeError

Returns a new instance of MissingAttributeError.



22
23
24
25
26
27
# File 'lib/yeshua_crm/currency.rb', line 22

def initialize(method, currency, attribute)
  super(
      "Can't call Currency.#{method} - currency '#{currency}' is missing "\
    "the attribute '#{attribute}'"
  )
end