crowdskout 0.1.4 → 0.1.5

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: 6f23aa4d157b3b993fcd28f8e16783c58ff7fe0f
4
- data.tar.gz: f68b4f7c26b4ccd5c6da9227e00ceb47c5321b10
3
+ metadata.gz: 1bfecfb569fd5d736d40d19fc0ca7308f6cc8be6
4
+ data.tar.gz: 1db01091965ba6ecd9abce3499b5bc16c69cd07f
5
5
  SHA512:
6
- metadata.gz: 7e109ed031890c808e96d44dc5b3f7678a767e9809a7ffe154f800989c38e801c522cae6a78f597add804f5114bdc8d57727b9bbdcd955abc2337e1b6a49483d
7
- data.tar.gz: 734fe14976b4bdd053727fbb2538a2c74d58f865d6ea81978e262481255c827a67aef2dbe27ee458f9903608431eb19f8dff2f0433f8a86e0dbdb14b3f4aaa4f
6
+ metadata.gz: 7f61ea9fe8ddc09d161f8c8399a0bc8725d09e1cbbe6e51c4a62595a7b21c5744fe038a2b98d813fc8716a78e48d1bc02877174be30c515280cc56c47172fab8
7
+ data.tar.gz: 2febe32b4297af05c0ccd242f070f398fcad76b0c63303921e80374a2763f874357f24d0215fbf58f3ca32caa83e5ee6b282e386e10e43301e483d2997c7ec28
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "crowdskout"
8
- s.version = '0.1.4'
8
+ s.version = '0.1.5'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Crowdskout", "Revv","Kyle Schutt"]
11
11
  s.homepage = "https://github.com/revvco/crowdskout"
@@ -6,6 +6,8 @@
6
6
 
7
7
  module Crowdskout
8
8
  class Api
9
+ attr_accessor :api_key, :access_token
10
+
9
11
  # Class constructor
10
12
  # @param [String] api_key - Crowdskout API Key
11
13
  # @param [String] access_token - Crowdskout OAuth2 access token
@@ -23,49 +25,49 @@ module Crowdskout
23
25
 
24
26
  # Profile Service Methods
25
27
  def get_profile(profile_id, collections)
26
- Services::ProfileService.new(api_key, access_token).get_profile(profile_id, collections)
28
+ Services::ProfileService.new(@api_key, @access_token).get_profile(profile_id, collections)
27
29
  end
28
30
  def create_profile(profile)
29
- Services::ProfileService.new(api_key, access_token).create_profile(profile)
31
+ Services::ProfileService.new(@api_key, @access_token).create_profile(profile)
30
32
  end
31
33
  def create_profiles_bulk(profiles)
32
- Services::ProfileService.new(api_key, access_token).create_profiles_bulk(profiles)
34
+ Services::ProfileService.new(@api_key, @access_token).create_profiles_bulk(profiles)
33
35
  end
34
36
  def update_profile(profile)
35
- Services::ProfileService.new(api_key, access_token).update_profile(profile)
37
+ Services::ProfileService.new(@api_key, @access_token).update_profile(profile)
36
38
  end
37
39
  def update_profiles_bulk(profiles)
38
- Services::ProfileService.new(api_key, access_token).update_profiles_bulk(profiles)
40
+ Services::ProfileService.new(@api_key, @access_token).update_profiles_bulk(profiles)
39
41
  end
40
42
  def check_for_non_match(profile)
41
- Services::ProfileService.new(api_key, access_token).check_for_non_match(profile)
43
+ Services::ProfileService.new(@api_key, @access_token).check_for_non_match(profile)
42
44
  end
43
45
 
44
46
  # Fields Service Methods
45
47
  def get_options_for_a_field(field_name, params = {})
46
- Services::FieldService.new(api_key, access_token).get_options_for_a_field(field_name, params)
48
+ Services::FieldService.new(@api_key, @access_token).get_options_for_a_field(field_name, params)
47
49
  end
48
50
 
49
51
  # Attribute Service Methods
50
52
  def get_attributes(params = {})
51
- Services::AttributeService.new(api_key, access_token).get_attributes(params)
53
+ Services::AttributeService.new(@api_key, @access_token).get_attributes(params)
52
54
  end
53
55
  def get_attribute(attribute_id, params = {})
54
- Services::AttributeService.new(api_key, access_token).get_attribute(attribute_id)
56
+ Services::AttributeService.new(@api_key, @access_token).get_attribute(attribute_id)
55
57
  end
56
58
  def create_attribute(name, type, options = nil)
57
- Services::AttributeService.new(api_key, access_token).create_attribute(name, type, options)
59
+ Services::AttributeService.new(@api_key, @access_token).create_attribute(name, type, options)
58
60
  end
59
61
  def update_attribute(attribute_id, params = {})
60
- Services::AttributeService.new(api_key, access_token).update_attribute(attribute_id, params)
62
+ Services::AttributeService.new(@api_key, @access_token).update_attribute(attribute_id, params)
61
63
  end
62
64
  def delete_attribute(attribute_id)
63
- Services::AttributeService.new(api_key, access_token).delete_attribute(attribute_id)
65
+ Services::AttributeService.new(@api_key, @access_token).delete_attribute(attribute_id)
64
66
  end
65
67
 
66
68
  # Quartermaster Service Methods
67
69
  def tracking_code
68
- Services::QuartermasterService.new(api_key, access_token).tracking_code
70
+ Services::QuartermasterService.new(@api_key, @access_token).tracking_code
69
71
  end
70
72
  end
71
73
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Crowdskout
22
- VERSION = '0.1.4'.freeze
22
+ VERSION = '0.1.5'.freeze
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdskout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Crowdskout
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-06 00:00:00.000000000 Z
13
+ date: 2017-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client