Class: Variant
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Instance Method Details
#product ⇒ Object
2 3 4 |
# File 'app/models/variant.rb', line 2 def product Product.find(:first, :from => "/v1/products/#{self.product_id}.xml") end |
#properties ⇒ Object
6 7 8 |
# File 'app/models/variant.rb', line 6 def properties VariantProperty.find(:all, :from => "/v1/variant_properties.xml?search[product_variant_id_equals]=#{self.id}") end |