114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
# File 'lib/bcl/component.rb', line 114
def add_cost(cost_name, cost_type, category, value, units, interval, interval_units, year, location, currency,
source, reference_component_name, reference_component_id)
cs = CostStruct.new
cs.cost_name = cost_name
cs.cost_type = cost_type
cs.category = category
cs.value = value
cs.interval = interval
cs.interval_units = interval_units
cs.year = year
cs.location = location
cs.units = units
cs.currency = currency
cs.source = source
cs.reference_component_name = reference_component_name
cs.reference_component_id = reference_component_id
@costs << cs
end
|