Class: OpenEHR::RM::DataTypes::Basic::DataValue
- Inherits:
-
Object
- Object
- OpenEHR::RM::DataTypes::Basic::DataValue
- Includes:
- Support::Definition::BasicDefinition
- Defined in:
- lib/open_ehr/rm/data_types/basic.rb
Direct Known Subclasses
DvBoolean, DvIdentifier, DvState, Encapsulated::DvEncapsulated, Quantity::DvOrdered, Text::DvParagraph, Text::DvText, URI::DvUri
Constant Summary
Constants included from Support::Definition::BasicDefinition
Support::Definition::BasicDefinition::CR, Support::Definition::BasicDefinition::LF
Instance Attribute Summary collapse
-
#value ⇒ Object
(also: #v)
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(args = {}) ⇒ DataValue
constructor
A new instance of DataValue.
Constructor Details
#initialize(args = {}) ⇒ DataValue
Returns a new instance of DataValue.
16 17 18 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 16 def initialize(args = {}) self.value = args[:value] end |
Instance Attribute Details
#value ⇒ Object Also known as: v
Returns the value of attribute value.
13 14 15 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 13 def value @value end |
Instance Method Details
#==(other) ⇒ Object
20 21 22 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 20 def ==(other) return self.value == other.value end |