Class: Models::OutletTax

Inherits:
Base
  • Object
show all
Defined in:
lib/models/outlet_tax.rb

Instance Attribute Summary

Attributes inherited from Base

#client, #data

Instance Method Summary collapse

Methods inherited from Base

#base_record, #extra_records, path, #records, schema, stream, subclasses

Instance Method Details

#transformObject



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