Class: OpenEHR::RM::DataTypes::Basic::DvState
- Defined in:
- lib/open_ehr/rm/data_types/basic.rb
Overview
end of DvBoolean
Constant Summary
Constants included from Support::Definition::BasicDefinition
Support::Definition::BasicDefinition::CR, Support::Definition::BasicDefinition::LF
Instance Attribute Summary collapse
-
#is_terminal ⇒ Object
Returns the value of attribute is_terminal.
Attributes inherited from DataValue
Instance Method Summary collapse
-
#initialize(args) ⇒ DvState
constructor
A new instance of DvState.
- #is_terminal? ⇒ Boolean
- #value=(v) ⇒ Object
Methods inherited from DataValue
Constructor Details
#initialize(args) ⇒ DvState
Returns a new instance of DvState.
47 48 49 50 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 47 def initialize(args) super(args) self.is_terminal = args[:is_terminal] end |
Instance Attribute Details
#is_terminal ⇒ Object
Returns the value of attribute is_terminal.
45 46 47 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 45 def is_terminal @is_terminal end |
Instance Method Details
#is_terminal? ⇒ Boolean
57 58 59 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 57 def is_terminal? @is_terminal end |
#value=(v) ⇒ Object
52 53 54 55 |
# File 'lib/open_ehr/rm/data_types/basic.rb', line 52 def value=(v) raise ArgumentError, "value should not be nil" if v.nil? @value = v end |