bigcartel 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module BigCartel
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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
- - 6
9
- version: 0.1.6
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-01-31 00:00:00 -06:00
17
+ date: 2011-03-15 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency