Class: BEL::Model::References
- Inherits:
-
Object
- Object
- BEL::Model::References
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/bel/evidence_model/references.rb
Constant Summary collapse
- ANNOTATION_DEFINITIONS =
:annotation_definitions
- NAMESPACE_DEFINITIONS =
:namespace_definitions
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #annotation_definitions ⇒ Object
- #annotation_definitions=(annotation_definitions) ⇒ Object
-
#initialize(values = {}) ⇒ References
constructor
A new instance of References.
- #namespace_definitions ⇒ Object
- #namespace_definitions=(namespace_definitions) ⇒ Object
Constructor Details
#initialize(values = {}) ⇒ References
Returns a new instance of References.
15 16 17 |
# File 'lib/bel/evidence_model/references.rb', line 15 def initialize(values = {}) @values = values end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
7 8 9 |
# File 'lib/bel/evidence_model/references.rb', line 7 def values @values end |
Instance Method Details
#annotation_definitions ⇒ Object
19 20 21 |
# File 'lib/bel/evidence_model/references.rb', line 19 def annotation_definitions @values[ANNOTATION_DEFINITIONS] ||= {} end |
#annotation_definitions=(annotation_definitions) ⇒ Object
23 24 25 |
# File 'lib/bel/evidence_model/references.rb', line 23 def annotation_definitions=(annotation_definitions) @values[ANNOTATION_DEFINITIONS] = annotation_definitions end |
#namespace_definitions ⇒ Object
27 28 29 |
# File 'lib/bel/evidence_model/references.rb', line 27 def namespace_definitions @values[NAMESPACE_DEFINITIONS] ||= {} end |
#namespace_definitions=(namespace_definitions) ⇒ Object
31 32 33 |
# File 'lib/bel/evidence_model/references.rb', line 31 def namespace_definitions=(namespace_definitions) @values[NAMESPACE_DEFINITIONS] = namespace_definitions end |