Class: Necropsy::DefinitionIndex::Lookup
- Inherits:
-
Data
- Object
- Data
- Necropsy::DefinitionIndex::Lookup
- Defined in:
- lib/necropsy/graph/definition_index.rb
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions
7 8 9 |
# File 'lib/necropsy/graph/definition_index.rb', line 7 def definitions @definitions end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier
7 8 9 |
# File 'lib/necropsy/graph/definition_index.rb', line 7 def identifier @identifier end |
#status ⇒ Object (readonly)
Returns the value of attribute status
7 8 9 |
# File 'lib/necropsy/graph/definition_index.rb', line 7 def status @status end |
Instance Method Details
#ambiguous? ⇒ Boolean
16 17 18 |
# File 'lib/necropsy/graph/definition_index.rb', line 16 def ambiguous? status == :ambiguous end |
#exact? ⇒ Boolean
8 9 10 |
# File 'lib/necropsy/graph/definition_index.rb', line 8 def exact? status == :exact end |
#missing? ⇒ Boolean
20 21 22 |
# File 'lib/necropsy/graph/definition_index.rb', line 20 def missing? status == :missing end |
#node ⇒ Object
24 25 26 |
# File 'lib/necropsy/graph/definition_index.rb', line 24 def node definitions.first if exact? || unique? end |
#unique? ⇒ Boolean
12 13 14 |
# File 'lib/necropsy/graph/definition_index.rb', line 12 def unique? status == :unique end |