Exception: Xeroizer::InvalidAttributeInWhere

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xeroizer/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(model_name, attribute_name) ⇒ InvalidAttributeInWhere

Returns a new instance of InvalidAttributeInWhere.



101
102
103
104
# File 'lib/xeroizer/exceptions.rb', line 101

def initialize(model_name, attribute_name)
  @model_name = model_name
  @attribute_name = attribute_name
end

Instance Method Details

#messageObject



106
107
108
# File 'lib/xeroizer/exceptions.rb', line 106

def message
  "#{@attribute_name} is not an attribute of #{@model_name}."
end