Class: Expressir::Model::DataTypes::Select

Inherits:
Expressir::Model::DataType show all
Defined in:
lib/expressir/model/data_types/select.rb

Overview

Specified in ISO 10303-11:2004

  • section 8.4.2 Select data type

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

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 = {}) ⇒ Select

Returns a new instance of Select.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :extensible (::Boolean)
  • :generic_entity (::Boolean)
  • :based_on (Reference)
  • :items (::Array<Reference>)


17
18
19
20
21
22
23
24
# File 'lib/expressir/model/data_types/select.rb', line 17

def initialize(options = {})
  @extensible = options[:extensible]
  @generic_entity = options[:generic_entity]
  @based_on = options[:based_on]
  @items = options[:items] || []

  super
end

Instance Attribute Details

#based_onReference

Returns:



9
# File 'lib/expressir/model/data_types/select.rb', line 9

model_attr_accessor :based_on, 'Reference'

#extensible::Boolean

Returns:

  • (::Boolean)


7
# File 'lib/expressir/model/data_types/select.rb', line 7

model_attr_accessor :extensible, '::Boolean'

#generic_entity::Boolean

Returns:

  • (::Boolean)


8
# File 'lib/expressir/model/data_types/select.rb', line 8

model_attr_accessor :generic_entity, '::Boolean'

#items::Array<Reference>

Returns:



10
# File 'lib/expressir/model/data_types/select.rb', line 10

model_attr_accessor :items, '::Array<Reference>'