Class: OpenEHR::RM::DataTypes::Basic::DataValue

Inherits:
Object
  • Object
show all
Includes:
Support::Definition::BasicDefinition
Defined in:
lib/open_ehr/rm/data_types/basic.rb

Constant Summary

Constants included from Support::Definition::BasicDefinition

Support::Definition::BasicDefinition::CR, Support::Definition::BasicDefinition::LF

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject 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