Exception: Bright::UnknownAttributeError
- Defined in:
- lib/bright/errors.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record, attribute) ⇒ UnknownAttributeError
constructor
A new instance of UnknownAttributeError.
Constructor Details
#initialize(record, attribute) ⇒ UnknownAttributeError
Returns a new instance of UnknownAttributeError.
27 28 29 30 31 |
# File 'lib/bright/errors.rb', line 27 def initialize(record, attribute) @record = record @attribute = attribute super("unknown attribute '#{attribute}' for #{@record.class}.") end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
25 26 27 |
# File 'lib/bright/errors.rb', line 25 def attribute @attribute end |
#record ⇒ Object (readonly)
Returns the value of attribute record.
25 26 27 |
# File 'lib/bright/errors.rb', line 25 def record @record end |