access 2.0.52 → 2.0.53

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 985f539efdded92d37fb747e8233caac196b509a
4
- data.tar.gz: 67dd8dfb7a31f883b1e2bf90712762d48f06d3ed
3
+ metadata.gz: b0d4870ee288eda3b8d17d95c8e5d376a6309ece
4
+ data.tar.gz: ae177e4336c9269fca5b32b12df4b4960738484e
5
5
  SHA512:
6
- metadata.gz: b70eee132ed67c7474fdab50484080010eb607e1b52dbf0132d1b85dae2f2ce669fb55fc703e96e946f3e8c6fc881c3cff3483b9d70598c4875a1d38e30f8813
7
- data.tar.gz: 253d53f43214b376d8ec7a40164c24fcbfff5053977e386b076f32dc210f5e09a550f1b22937ef652ed7cd369fa276504e69ae190fbbaffa0beb8bfccddd591c
6
+ metadata.gz: d61a8c4057a81f37099c4bf2447c2933683267d293af370164e5949a6dac49ad8052fc4477fa9d986883c89cc3737f1cb15cc0b4b851cb5cce2126bd86befab1
7
+ data.tar.gz: 05f10b77777e1c7a7bb33d9ecb443fd9a5cbf293eb9c03be2143c955816391c992335a3d1e18b05cce2a0aea6421091cee29125f0224ae6b4617f17b8e401f04
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- access (2.0.52)
4
+ access (2.0.53)
5
5
  hashie (~> 3.3.1)
6
6
  httparty (~> 0.13.3)
7
7
 
@@ -111,6 +111,3 @@ DEPENDENCIES
111
111
  simplecov
112
112
  vcr
113
113
  webmock
114
-
115
- BUNDLED WITH
116
- 1.13.1
@@ -36,6 +36,7 @@ require "access/token"
36
36
  require "access/user"
37
37
  require "access/verify"
38
38
  require "access/version"
39
+ require "access/shopping_cart"
39
40
 
40
41
  module Access
41
42
 
@@ -412,6 +412,12 @@ module Access
412
412
  end
413
413
  end
414
414
 
415
+ def get_shopping_cart_count(options= {})
416
+ request.get('/cart/count', 'shoppingcart', options) do |response|
417
+ ShoppingCartResponse.new(response)
418
+ end
419
+ end
420
+
415
421
 
416
422
  private
417
423
 
@@ -17,6 +17,8 @@ module Access
17
17
  attr_reader :spot_name, :spot_text, :spot_ranking, :spot_redirect_url, :spot_redirect_type, :spot_image_url, :offer_resource
18
18
  #channel show page
19
19
  attr_reader :channel_name, :channel_type, :channel_identifier, :channel_description
20
+ #shopping cart count
21
+ attr_reader :total_cart_count
20
22
 
21
23
  def initialize(response)
22
24
  @response = response # Setting this temporarily so i can have a working member reg call, since it doesn't follow the resource [] best practices
@@ -60,7 +62,6 @@ module Access
60
62
 
61
63
  class ProductGroupResponse < Response
62
64
  def process_data
63
-
64
65
  end
65
66
  end
66
67
 
@@ -73,6 +74,11 @@ module Access
73
74
  end
74
75
  end
75
76
 
77
+ class ShoppingCartResponse < Response
78
+ def process_data
79
+ end
80
+ end
81
+
76
82
  class LocationResponse < Response
77
83
  def process_data
78
84
  (@locations = []; create_error) if @message
@@ -0,0 +1,10 @@
1
+ module Access
2
+ class ShoppingCart
3
+ include Access::MuchMeta
4
+
5
+ def self.get_count(options={})
6
+ Access::Api.new.get_shopping_cart_count options
7
+ end
8
+
9
+ end
10
+ end
@@ -1,4 +1,4 @@
1
1
  module Access
2
- VERSION = "2.0.52"
2
+ VERSION = "2.0.53"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.52
4
+ version: 2.0.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-09-19 00:00:00.000000000 Z
13
+ date: 2016-10-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -261,6 +261,7 @@ files:
261
261
  - lib/access/report.rb
262
262
  - lib/access/request.rb
263
263
  - lib/access/response.rb
264
+ - lib/access/shopping_cart.rb
264
265
  - lib/access/spot.rb
265
266
  - lib/access/store.rb
266
267
  - lib/access/token.rb
@@ -403,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
403
404
  version: '0'
404
405
  requirements: []
405
406
  rubyforge_project:
406
- rubygems_version: 2.4.8
407
+ rubygems_version: 2.4.5
407
408
  signing_key:
408
409
  specification_version: 4
409
410
  summary: Ruby wrapper for Access API