Class: Expressir::Model::References::IndexReference

Inherits:
Expressir::Model::Reference show all
Defined in:
lib/expressir/model/references/index_reference.rb

Overview

Specified in ISO 10303-11:2004

  • section 12.3.1 Binary indexing

  • section 12.5.1 String indexing

  • section 12.6.1 Aggregate indexing

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

Returns a new instance of IndexReference.

Parameters:

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

Options Hash (options):



17
18
19
20
21
22
23
# File 'lib/expressir/model/references/index_reference.rb', line 17

def initialize(options = {})
  @ref = options[:ref]
  @index1 = options[:index1]
  @index2 = options[:index2]

  super
end

Instance Attribute Details

#index1Expression

Returns:



10
# File 'lib/expressir/model/references/index_reference.rb', line 10

model_attr_accessor :index1, 'Expression'

#index2Expression

Returns:



11
# File 'lib/expressir/model/references/index_reference.rb', line 11

model_attr_accessor :index2, 'Expression'

#refReference

Returns:



9
# File 'lib/expressir/model/references/index_reference.rb', line 9

model_attr_accessor :ref, 'Reference'