Exception: Eeml::Exceptions::MissingAttribute
- Defined in:
- lib/eeml/exceptions.rb
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
-
#node_name ⇒ Object
Returns the value of attribute node_name.
Attributes inherited from BadEeml
Instance Method Summary collapse
-
#initialize(node_name, attribute_name) ⇒ MissingAttribute
constructor
A new instance of MissingAttribute.
- #to_s ⇒ Object
Constructor Details
#initialize(node_name, attribute_name) ⇒ MissingAttribute
Returns a new instance of MissingAttribute.
52 53 54 55 |
# File 'lib/eeml/exceptions.rb', line 52 def initialize(node_name, attribute_name) @node_name = node_name @attribute_name = attribute_name end |
Instance Attribute Details
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
50 51 52 |
# File 'lib/eeml/exceptions.rb', line 50 def attribute_name @attribute_name end |
#node_name ⇒ Object
Returns the value of attribute node_name.
50 51 52 |
# File 'lib/eeml/exceptions.rb', line 50 def node_name @node_name end |
Instance Method Details
#to_s ⇒ Object
57 58 59 |
# File 'lib/eeml/exceptions.rb', line 57 def to_s "Missing attribute '#@attribute_name' from node '#@node_name'" end |