Exception: Rasti::Model::UnexpectedAttributesError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rasti/model/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



17
18
19
# File 'lib/rasti/model/errors.rb', line 17

def attributes
  @attributes
end