Class: OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvQuantity
- Inherits:
-
Archetype::ConstraintModel::CDomainType
- Object
- Archetype::ConstraintModel::ArchetypeConstraint
- Archetype::ConstraintModel::CObject
- Archetype::ConstraintModel::CDefinedObject
- Archetype::ConstraintModel::CDomainType
- OpenEHR::AM::OpenEHRProfile::DataTypes::Quantity::CDvQuantity
- Defined in:
- lib/openehr/am/openehr_profile/data_types/quantity.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
-
#property ⇒ Object
Returns the value of attribute property.
Attributes inherited from Archetype::ConstraintModel::CDefinedObject
Attributes inherited from Archetype::ConstraintModel::CObject
#node_id, #occurrences, #rm_type_name
Attributes inherited from Archetype::ConstraintModel::ArchetypeConstraint
Instance Method Summary collapse
- #any_allowed? ⇒ Boolean
-
#initialize(args = { }) ⇒ CDvQuantity
constructor
A new instance of CDvQuantity.
Methods inherited from Archetype::ConstraintModel::CDomainType
Methods inherited from Archetype::ConstraintModel::CDefinedObject
#default_value, #has_assumed_value?, #valid_value?
Methods inherited from Archetype::ConstraintModel::CObject
Methods inherited from Archetype::ConstraintModel::ArchetypeConstraint
#congruent?, #has_path?, #node_conforms_to?
Constructor Details
#initialize(args = { }) ⇒ CDvQuantity
Returns a new instance of CDvQuantity.
11 12 13 14 15 |
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 11 def initialize(args = { }) super self.property = args[:property] self.list = args[:list] end |
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
9 10 11 |
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 9 def list @list end |
#property ⇒ Object
Returns the value of attribute property.
9 10 11 |
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 9 def property @property end |
Instance Method Details
#any_allowed? ⇒ Boolean
17 18 19 20 21 22 23 |
# File 'lib/openehr/am/openehr_profile/data_types/quantity.rb', line 17 def any_allowed? if @property.nil? && @list.nil? return true else return false end end |