Method: BCL::Component#initialize

Defined in:
lib/bcl/component.rb

#initialize(save_path) ⇒ Component

the save path is where the component will be saved



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/bcl/component.rb', line 32

def initialize(save_path)
  super(save_path)

  @comment = ''
  @source_manufacturer = ''
  @source_model = ''
  @source_serial_no = ''
  @source_year = ''
  @source_url = ''

  # these items have multiple instances

  @costs = []
  @objects = [] # container for saving the idf/osm snippets

  @path = save_path

  # TODO: validate against master taxonomy
end