bigcartel 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/bigcartel/version.rb +1 -1
- data/lib/bigcartel.rb +2 -1
- metadata +3 -3
data/lib/bigcartel/version.rb
CHANGED
data/lib/bigcartel.rb
CHANGED
|
@@ -99,7 +99,7 @@ module BigCartel
|
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
class Product < Base
|
|
102
|
-
attr_reader :name, :permalink, :url, :description, :artists, :on_sale, :status, :categories, :price, :position, :url, :id, :tax, :images, :shipping
|
|
102
|
+
attr_reader :name, :permalink, :url, :description, :artists, :on_sale, :status, :categories, :price, :position, :url, :id, :tax, :images, :shipping, :options
|
|
103
103
|
def initialize(store_url, data={})
|
|
104
104
|
@name = data['name']
|
|
105
105
|
@description = data['description']
|
|
@@ -115,6 +115,7 @@ module BigCartel
|
|
|
115
115
|
@permalink = data['permalink']
|
|
116
116
|
@images = data['images'].blank? ? [] : data['images'].map{|img| Image.new(img)}
|
|
117
117
|
@shipping = data['shipping'].map{|ship| Shipping.new(ship)} unless data['shipping'].blank?
|
|
118
|
+
@options = data['options'].map{|opt| ProductOption.new(opt)} unless data['options'].blank?
|
|
118
119
|
end
|
|
119
120
|
|
|
120
121
|
def img
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 7
|
|
9
|
+
version: 0.1.7
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Matt Anderson
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-
|
|
17
|
+
date: 2011-03-15 00:00:00 -05:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|