Exception: Rasti::Model::UnexpectedAttributesError
- Inherits:
-
StandardError
- Object
- StandardError
- Rasti::Model::UnexpectedAttributesError
- Defined in:
- lib/rasti/model/errors.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ UnexpectedAttributesError
constructor
A new instance of UnexpectedAttributesError.
Constructor Details
#initialize(attributes) ⇒ UnexpectedAttributesError
Returns a new instance of UnexpectedAttributesError.
19 20 21 22 |
# File 'lib/rasti/model/errors.rb', line 19 def initialize(attributes) @attributes = attributes super "Unexpected attributes: #{attributes.join(', ')}" end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
17 18 19 |
# File 'lib/rasti/model/errors.rb', line 17 def attributes @attributes end |