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
53 54 55 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 53 def category DataStore::Category.first(dcs: self.dcs) end |
#price_levels ⇒ Object
41 42 43 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 41 def price_levels DataStore::PriceLevel.all(itemsid: self.itemsid) end |
#product ⇒ Object
45 46 47 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 45 def product DataStore::Product.first(desc1: self.desc1) end |
#stocks ⇒ Object
49 50 51 |
# File 'lib/flexquery_datastore/models/Variant.rb', line 49 def stocks DataStore::Stock.all(itemsid: self.itemsid) end |