Class: Expressir::Model::References::SimpleReference

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

Overview

Specified in ISO 10303-11:2004

  • section 12.7.1 Simple references

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

Returns a new instance of SimpleReference.

Parameters:

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

Options Hash (options):



14
15
16
17
18
19
20
# File 'lib/expressir/model/references/simple_reference.rb', line 14

def initialize(options = {})
  @id = options[:id]

  @base_path = options[:base_path]

  super
end

Instance Attribute Details

#base_pathString

Returns:



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

model_attr_accessor :base_path, 'String'

#idString

Returns:



7
# File 'lib/expressir/model/references/simple_reference.rb', line 7

model_attr_accessor :id, 'String'