Class: Models::OutletTax
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#base_record, #extra_records, path, #records, schema, stream, subclasses
Instance Method Details
#transform ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/models/outlet_tax.rb', line 8 def transform super.tap do |hash| hash.merge!( 'id' => hash.slice('outlet_id', 'product_id', 'tax_id').values.join('.') ) end end |