ebay-ruby 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f9688f2d0adcae118335721df5184c0e2dcd2c5b6d02e9473df5fb677798196
4
- data.tar.gz: 9914bf32f01ce3719667b0b34443ef4c1b7829bd40c8e69a497caccfa550ebe5
3
+ metadata.gz: 0fd16f623556b875afb1ecb939fbd296ce5b476ba452dd6180fa52bac6085bc4
4
+ data.tar.gz: b4d55cba32a9a53878f649c3dbcd2d8ee0649fa381a312d809ab5c11b68a19ce
5
5
  SHA512:
6
- metadata.gz: 77451dd48c94af23957a9c9989bf99b8e0367ffd246c6f61856633e51250c389b9d9dbbcb91f3c7cab3ea5e529db53c69df0cb783aa5487a4dc6b3afe5299fa8
7
- data.tar.gz: a2027027fc7f7904ddcfa5880a67b43245f2df3cee9d9420215e3fced3cee8e3aa399b9d53e8a6c055fb7c9cf7490b684f49b9f4069e1ded4863c2dbbb80f4cf
6
+ metadata.gz: f672edffb9231c9a573adf8c1291bf267793c62be549b47b52c3457fac118218d10b1e1d3bc7a733dab0eb7ee3c7dd50beb59e2c331ca3fd2e98f177a784b498
7
+ data.tar.gz: f32cfa29cf7ec5fdc79683140debd33ee7830e5968e8aea489dbdb6dc34bb274859812a1a1f49a7e9557ccc6b1841b435172843948a8932d8d327c1a1f948a9f
data/lib/ebay/browse.rb CHANGED
@@ -21,6 +21,9 @@ module Ebay
21
21
 
22
22
  self.endpoint = 'https://api.ebay.com/buy/browse/v1'
23
23
 
24
+ # @return [String]
25
+ attr_reader :access_token
26
+
24
27
  # @return [String]
25
28
  attr_reader :campaign_id
26
29
 
@@ -36,17 +39,15 @@ module Ebay
36
39
  # @return [String,nil]
37
40
  attr_reader :market_id
38
41
 
39
- # @return [String] the application access token
40
- def access_token
41
- @access_token ||= mint_access_token
42
- end
43
-
44
42
  # Returns a Browse API request instance
45
43
  #
44
+ # @param [String] access_token
46
45
  # @param [String] campaign_id
47
46
  # @param [String] reference_id
48
- # @param [String] access_token
49
- def initialize(campaign_id:, reference_id: nil, country: nil, zip: nil, access_token: nil, market_id: 'EBAY_US')
47
+ # @param [String] country
48
+ # @param [String] zip
49
+ # @param [String] market_id
50
+ def initialize(access_token:, campaign_id:, reference_id: nil, country: nil, zip: nil, market_id: 'EBAY_US')
50
51
  @campaign_id = campaign_id
51
52
  @reference_id = reference_id
52
53
  @country = country
data/lib/ebay/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ebay
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebay-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-27 00:00:00.000000000 Z
11
+ date: 2021-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubygems_version: 3.2.15
197
+ rubygems_version: 3.2.22
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Ruby wrapper to the eBay APIs