handcrafted-ebay_products 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/ebay_products.gemspec +1 -1
- data/lib/ebay_products.rb +7 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/ebay_products.gemspec
CHANGED
data/lib/ebay_products.rb
CHANGED
@@ -19,7 +19,13 @@ class EbayProducts
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def search
|
22
|
-
@search
|
22
|
+
if @search.blank?
|
23
|
+
@search = self.class.get("/shopping", :query => options, :format => :xml)["FindProductsResponse"]["Product"]
|
24
|
+
if @search.is_a? Hash
|
25
|
+
@search = [@search]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
@search
|
23
29
|
end
|
24
30
|
|
25
31
|
def products
|