Class: Opencdd::DataType::EnumReferenceType
- Inherits:
-
DataType
- Object
- DataType
- Opencdd::DataType::EnumReferenceType
- Defined in:
- lib/opencdd/data_type.rb
Instance Attribute Summary collapse
-
#value_list_identifier ⇒ Object
readonly
Returns the value of attribute value_list_identifier.
Instance Method Summary collapse
- #enum? ⇒ Boolean
-
#initialize(value_list_identifier) ⇒ EnumReferenceType
constructor
A new instance of EnumReferenceType.
- #reference? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(value_list_identifier) ⇒ EnumReferenceType
Returns a new instance of EnumReferenceType.
96 97 98 99 |
# File 'lib/opencdd/data_type.rb', line 96 def initialize(value_list_identifier) super("ENUM_REFERENCE_TYPE") @value_list_identifier = value_list_identifier.to_s end |
Instance Attribute Details
#value_list_identifier ⇒ Object (readonly)
Returns the value of attribute value_list_identifier.
94 95 96 |
# File 'lib/opencdd/data_type.rb', line 94 def value_list_identifier @value_list_identifier end |
Instance Method Details
#enum? ⇒ Boolean
101 |
# File 'lib/opencdd/data_type.rb', line 101 def enum? = true |
#reference? ⇒ Boolean
102 |
# File 'lib/opencdd/data_type.rb', line 102 def reference? = true |
#to_s ⇒ Object
104 105 106 |
# File 'lib/opencdd/data_type.rb', line 104 def to_s "ENUM_REFERENCE_TYPE(#{@value_list_identifier})" end |