Class: Shipworks::Store

Inherits:
ShipworksRecord show all
Defined in:
app/models/shipworks/store.rb

Constant Summary collapse

STORE_TYPE_MAPPING =
{
  1 => 'eBay',
  10 => 'Amazon',
  13 => 'Zen Cart',
  31 => 'Generic - File',
  34 => 'Newegg',
  35 => 'Buy.com',
  36 => 'Sears',
  61 => 'Choxi',
  75 => 'Walmart',
  78 => 'GeekSeller'
}

Instance Method Summary collapse

Methods inherited from ShipworksRecord

table_name

Instance Method Details

#TypeNameObject



18
19
20
# File 'app/models/shipworks/store.rb', line 18

def TypeName
  STORE_TYPE_MAPPING[self.TypeCode] || self.TypeCode
end