Class: Models::Outlet
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#base_record, path, #records, schema, stream, subclasses
Instance Method Details
#extra_records ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/models/outlet.rb', line 22 def extra_records data['attributes'].map do |attribute| OutletAttribute.new( attribute.merge('outlet_id' => data['id']), client ) end end |
#transform ⇒ Object
16 17 18 19 20 |
# File 'lib/models/outlet.rb', line 16 def transform super.tap do |hash| hash.delete 'attributes' end end |