Exception: DataGuru::MissingValue
- Inherits:
-
StandardError
- Object
- StandardError
- DataGuru::MissingValue
- Defined in:
- lib/data_guru/exceptions.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#collection_name ⇒ Object
readonly
Returns the value of attribute collection_name.
Instance Method Summary collapse
-
#initialize(attribute, collection_name) ⇒ MissingValue
constructor
A new instance of MissingValue.
- #message ⇒ Object
Constructor Details
#initialize(attribute, collection_name) ⇒ MissingValue
Returns a new instance of MissingValue.
5 6 7 8 |
# File 'lib/data_guru/exceptions.rb', line 5 def initialize(attribute, collection_name) @attribute = attribute @collection_name = collection_name end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/data_guru/exceptions.rb', line 3 def attribute @attribute end |
#collection_name ⇒ Object (readonly)
Returns the value of attribute collection_name.
3 4 5 |
# File 'lib/data_guru/exceptions.rb', line 3 def collection_name @collection_name end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/data_guru/exceptions.rb', line 10 def "Value '#{attribute}' does not exist for '#{collection_name}' collection" end |