Exception: Dynamoid::Errors::UnknownAttribute

Inherits:
Error
  • Object
show all
Defined in:
lib/dynamoid/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_class, attribute_name) ⇒ UnknownAttribute

Returns a new instance of UnknownAttribute.



92
93
94
95
96
97
# File 'lib/dynamoid/errors.rb', line 92

def initialize(model_class, attribute_name)
  super("Attribute #{attribute_name} does not exist in #{model_class}")

  @model_class = model_class
  @attribute_name = attribute_name
end

Instance Attribute Details

#attribute_nameObject (readonly)

Returns the value of attribute attribute_name.



90
91
92
# File 'lib/dynamoid/errors.rb', line 90

def attribute_name
  @attribute_name
end

#model_classObject (readonly)

Returns the value of attribute model_class.



90
91
92
# File 'lib/dynamoid/errors.rb', line 90

def model_class
  @model_class
end