Class: DataStore::Variant
- Inherits:
-
Object
- Object
- DataStore::Variant
- Includes:
- DataMapper::Resource
- Defined in:
- lib/flexquery_datastore/models/Variant.rb
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
52 53 54 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 52 def category DataStore::Category.first(dcs: self.dcs) end |
#price_levels ⇒ Object
40 41 42 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 40 def price_levels DataStore::PriceLevel.all(itemsid: self.itemsid) end |
#product ⇒ Object
44 45 46 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 44 def product DataStore::Product.first(desc1: self.desc1) end |
#stocks ⇒ Object
48 49 50 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 48 def stocks DataStore::Stock.all(itemsid: self.itemsid) end |