Class: OpenEHR::RM::DataTypes::Encapsulated::DvEncapsulated

Inherits:
Basic::DataValue show all
Defined in:
lib/open_ehr/rm/data_types/encapsulated.rb

Direct Known Subclasses

DvMultimedia, DvParsable

Constant Summary

Constants included from Support::Definition::BasicDefinition

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

Instance Attribute Summary collapse

Attributes inherited from Basic::DataValue

#value

Instance Method Summary collapse

Methods inherited from Basic::DataValue

#==

Constructor Details

#initialize(args = {}) ⇒ DvEncapsulated

Returns a new instance of DvEncapsulated.



14
15
16
17
18
# File 'lib/open_ehr/rm/data_types/encapsulated.rb', line 14

def initialize(args = {})
  super(args)
  self.charset = args[:charset]
  self.language = args[:language]
end

Instance Attribute Details

#charsetObject

Returns the value of attribute charset.



12
13
14
# File 'lib/open_ehr/rm/data_types/encapsulated.rb', line 12

def charset
  @charset
end

#languageObject

Returns the value of attribute language.



12
13
14
# File 'lib/open_ehr/rm/data_types/encapsulated.rb', line 12

def language
  @language
end

Instance Method Details

#sizeObject



20
21
22
# File 'lib/open_ehr/rm/data_types/encapsulated.rb', line 20

def size
  @value.size
end