Class: MongoVariantListing
- Inherits:
-
Object
- Object
- MongoVariantListing
- Includes:
- Mongoid::Attributes::Dynamic, Mongoid::Document
- Defined in:
- lib/models/mongo_variant_listing.rb
Instance Method Summary collapse
Instance Method Details
#item_listing ⇒ Object
13 14 15 |
# File 'lib/models/mongo_variant_listing.rb', line 13 def item_listing @item_listing ||= MongoItemListing.where(variants: id).first end |
#local_item_id ⇒ Object
9 10 11 |
# File 'lib/models/mongo_variant_listing.rb', line 9 def local_item_id item_listing&.local_id rescue local_id end |