class Models::Outlet

Public Instance Methods

extra_records() click to toggle source
# 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() click to toggle source
Calls superclass method
# File lib/models/outlet.rb, line 16
def transform
  super.tap do |hash|
    hash.delete 'attributes'
  end
end