letsshop_mapper 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,11 +13,12 @@ module LetsShopMapper
13
13
  attr_reader :thumb
14
14
  attr_reader :supplier
15
15
  attr_reader :facets
16
+ attr_reader :shipping_cost
16
17
  attr_reader :delivery_times
17
18
  attr_reader :product_condition
18
19
 
19
20
  def initialize(entry = nil)
20
- @id, @link, @title, @description, @price, @thumb, @supplier, @delivery_times, @product_condition = nil
21
+ @id, @link, @title, @description, @price, @thumb, @supplier, @delivery_times, @product_condition, @shipping_cost = nil
21
22
  @facets = []
22
23
  parse(entry) if entry
23
24
  end
@@ -32,6 +33,7 @@ module LetsShopMapper
32
33
  @currency = entry.at('letsshop/price')['currency']
33
34
  @discount = entry.at('letsshop/price')['discount']
34
35
  @older_price = entry.at('letsshop/price')['older']
36
+ @shipping_cost = entry.at('letsshop/shipping_cost').text
35
37
  @delivery_times = entry.at('letsshop/delivery_times').text
36
38
  @product_condition = entry.at('letsshop/product_condition').text
37
39
 
@@ -2,7 +2,7 @@ module LetsShopMapper
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- TINY = 2
5
+ TINY = 3
6
6
  BUILD = ""
7
7
  STRING = [MAJOR, MINOR, TINY, BUILD].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letsshop_mapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - happun
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-10 00:00:00 +01:00
18
+ date: 2011-02-14 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21