Class: NimbleshopSimply::SampleData

Inherits:
Object
  • Object
show all
Defined in:
lib/nimbleshop_simply/sample_data/sample_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#productsObject

Returns the value of attribute products.



4
5
6
# File 'lib/nimbleshop_simply/sample_data/sample_data.rb', line 4

def products
  @products
end

Instance Method Details

#populateObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/nimbleshop_simply/sample_data/sample_data.rb', line 6

def populate
  load_shipment_carriers
  load_shop
  load_shipping_methods
  load_product_group_for_price
  load_product_group_for_category

  load_tag_watch
  load_iphone_cover
  load_turquoise_bracelet
  load_bag
  load_tajmahal
  load_chronograph_watch
  load_mangoes
  load_bangles
  load_shoes
end