Exception: Dynamoid::Errors::UnknownAttribute
- Defined in:
- lib/dynamoid/errors.rb
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
readonly
Returns the value of attribute attribute_name.
-
#model_class ⇒ Object
readonly
Returns the value of attribute model_class.
Instance Method Summary collapse
-
#initialize(model_class, attribute_name) ⇒ UnknownAttribute
constructor
A new instance of UnknownAttribute.
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_name ⇒ Object (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_class ⇒ Object (readonly)
Returns the value of attribute model_class.
90 91 92 |
# File 'lib/dynamoid/errors.rb', line 90 def model_class @model_class end |