storesapp-rb 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/storesapp/resources/cart.rb +1 -1
- data/lib/storesapp/resources/cart_item.rb +1 -1
- data/lib/storesapp/resources/collection.rb +1 -1
- data/lib/storesapp/resources/product.rb +4 -4
- data/lib/storesapp/resources/product_property.rb +1 -1
- data/lib/storesapp/resources/product_variant.rb +1 -1
- data/lib/storesapp.rb +1 -1
- data/storesapp.gemspec +1 -1
- metadata +3 -3
@@ -2,7 +2,7 @@ module StoresApp
|
|
2
2
|
module Resources
|
3
3
|
class CartItem < StoresApp::StoresAppResource
|
4
4
|
def properties
|
5
|
-
CartItemProperty.find(:all, :from => "/api/cart_items/#{self.id}/properties.xml", :params => {:cart_id => self.cart_id})
|
5
|
+
CartItemProperty.find(:all, :from => "/api/v1/cart_items/#{self.id}/properties.xml", :params => {:cart_id => self.cart_id})
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
@@ -2,7 +2,7 @@ module StoresApp
|
|
2
2
|
module Resources
|
3
3
|
class Collection < StoresApp::StoresAppResource
|
4
4
|
def products
|
5
|
-
Product.find(:all, :from => "/api/collections/#{self.id}/products.xml")
|
5
|
+
Product.find(:all, :from => "/api/v1/collections/#{self.id}/products.xml")
|
6
6
|
end
|
7
7
|
|
8
8
|
# def add_product(options={})
|
@@ -2,19 +2,19 @@ module StoresApp
|
|
2
2
|
module Resources
|
3
3
|
class Product < StoresApp::StoresAppResource
|
4
4
|
def collections
|
5
|
-
Collection.find(:all, :from => "/api/products/#{self.id}/collections.xml")
|
5
|
+
Collection.find(:all, :from => "/api/v1/products/#{self.id}/collections.xml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def images
|
9
|
-
ProductImage.find(:all, :from => "/api/products/#{self.id}/images.xml")
|
9
|
+
ProductImage.find(:all, :from => "/api/v1/products/#{self.id}/images.xml")
|
10
10
|
end
|
11
11
|
|
12
12
|
def properties
|
13
|
-
ProductProperty.find(:all, :from => "/api/products/#{self.id}/properties.xml")
|
13
|
+
ProductProperty.find(:all, :from => "/api/v1/products/#{self.id}/properties.xml")
|
14
14
|
end
|
15
15
|
|
16
16
|
def variants
|
17
|
-
ProductVariant.find(:all, :from => "/api/products/#{self.id}/variants.xml")
|
17
|
+
ProductVariant.find(:all, :from => "/api/v1/products/#{self.id}/variants.xml")
|
18
18
|
end
|
19
19
|
|
20
20
|
# def add_collection(options={})
|
@@ -2,7 +2,7 @@ module StoresApp
|
|
2
2
|
module Resources
|
3
3
|
class ProductProperty < StoresApp::StoresAppResource
|
4
4
|
def values
|
5
|
-
ProductPropertyValue.find(:all, :from => "/api/product_properties/#{self.id}/values.xml", :params => {:product_id => self.product_id})
|
5
|
+
ProductPropertyValue.find(:all, :from => "/api/v1/product_properties/#{self.id}/values.xml", :params => {:product_id => self.product_id})
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
@@ -2,7 +2,7 @@ module StoresApp
|
|
2
2
|
module Resources
|
3
3
|
class ProductVariant < StoresApp::StoresAppResource
|
4
4
|
def values
|
5
|
-
ProductPropertyValue.find(:all, :from => "/api/product_variants/#{self.id}/values.xml", :params => {:product_id => self.product_id})
|
5
|
+
ProductPropertyValue.find(:all, :from => "/api/v1/product_variants/#{self.id}/values.xml", :params => {:product_id => self.product_id})
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/storesapp.rb
CHANGED
data/storesapp.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: storesapp-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.8
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Next Feature
|