Class: Expressir::Model::DataTypes::Enumeration
- Inherits:
-
Expressir::Model::DataType
- Object
- ModelElement
- Expressir::Model::DataType
- Expressir::Model::DataTypes::Enumeration
- Defined in:
- lib/expressir/model/data_types/enumeration.rb
Overview
Specified in ISO 10303-11:2004
-
section 8.4.1 Enumeration data type
Instance Attribute Summary collapse
Attributes inherited from ModelElement
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Enumeration
constructor
A new instance of Enumeration.
Methods inherited from ModelElement
#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
#initialize(options = {}) ⇒ Enumeration
Returns a new instance of Enumeration.
15 16 17 18 19 20 21 |
# File 'lib/expressir/model/data_types/enumeration.rb', line 15 def initialize( = {}) @extensible = [:extensible] @based_on = [:based_on] @items = [:items] || [] super end |
Instance Attribute Details
#based_on ⇒ Reference
8 |
# File 'lib/expressir/model/data_types/enumeration.rb', line 8 model_attr_accessor :based_on, 'Reference' |
#extensible ⇒ ::Boolean
7 |
# File 'lib/expressir/model/data_types/enumeration.rb', line 7 model_attr_accessor :extensible, '::Boolean' |
#items ⇒ ::Array<EnumerationItem>
9 |
# File 'lib/expressir/model/data_types/enumeration.rb', line 9 model_attr_accessor :items, '::Array<EnumerationItem>' |