kentaa-api 0.7.0 → 0.7.2

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: 1aca25f29280f1c8b1ac63c17a8d8bac967c27a10975027ceaa163ca13a57a09
4
- data.tar.gz: 7e9a8a9e7bcc65b8f63de8284db9e8550d238bf75dc8565a2eeb5f147f48e5c3
3
+ metadata.gz: fd192c8023f46af9cea803f98b001a9ea269b7624ef185351aded186ff9e4cae
4
+ data.tar.gz: 729ee7893d096aa4262dcf9fa306e50f5ae9e8e4660b5bfb1cdc13bd23ad0d1a
5
5
  SHA512:
6
- metadata.gz: 5b5889b38da0cf1ed917460cfae3f2c4987c4fe62e48988f865dd1768c2106ca12d726e324f3d3c1f7199b8888848c93ecfcd93ff2a6de5bb6bff01a79418d9a
7
- data.tar.gz: bd4b8963915d48a62f44082aa20225b1826c2a0eae40488084c138e78799f06787e7213d6d7bc8b2bd1e7f19de92f3ddbae7ad2e13ec6e2a47fb192d1187c57b
6
+ metadata.gz: f99a58f693ee130c32d81b89559eaf1b7e56454daef25b2954df048a905495c45dd019c4e348f666b51302f523345705a71de3b4698be8b6a037d224541af4fd
7
+ data.tar.gz: 6e59aedd98b789cc4e8a848b6ce8489bdf58e8428d29ef4cf805b452a914d56c3ba24d774cf7c263a8978bbe8f85c041f6ae728e25a1f61bf22893a3cb1935fd
data/README.md CHANGED
@@ -431,7 +431,7 @@ user = client.users.get(1)
431
431
  user.first_name # => "John"
432
432
  user.last_name # => "Doe"
433
433
 
434
- # Create an User
434
+ # Create a User
435
435
  user = client.users.create(
436
436
  first_name: "John",
437
437
  last_name: "Doe"
@@ -441,12 +441,12 @@ user.id # => 1
441
441
  user.first_name # => "John"
442
442
  user.last_name # => "Doe"
443
443
 
444
- # Update an User
444
+ # Update a User
445
445
  user = client.users.update(1, first_name: "Jane")
446
446
 
447
447
  user.first_name # => "Jane"
448
448
 
449
- # Authenticate an User
449
+ # Authenticate a User
450
450
  user = client.users.auth(email: "john.doe@kentaa.nl", password: "secret")
451
451
 
452
452
  user.id # => 1
@@ -17,6 +17,8 @@ module Kentaa
17
17
  def parent
18
18
  if team_id
19
19
  Kentaa::Api::Resources::Team.new(config, id: team_id, options: options)
20
+ elsif company_id
21
+ Kentaa::Api::Resources::Company.new(config, id: company_id, options: options)
20
22
  elsif project_id
21
23
  Kentaa::Api::Resources::Project.new(config, id: project_id, options: options)
22
24
  elsif segment_id
@@ -46,6 +48,10 @@ module Kentaa
46
48
  data[:project_id]
47
49
  end
48
50
 
51
+ def company_id
52
+ data[:company_id]
53
+ end
54
+
49
55
  def team_id
50
56
  data[:team_id]
51
57
  end
@@ -94,6 +94,10 @@ module Kentaa
94
94
  def terms_conditions_version
95
95
  data[:terms_conditions_version]
96
96
  end
97
+
98
+ def privacy_version
99
+ data[:privacy_version]
100
+ end
97
101
  end
98
102
  end
99
103
  end
@@ -16,6 +16,8 @@ module Kentaa
16
16
  Kentaa::Api::Resources::Action.new(config, id: action_id, options: options)
17
17
  elsif team_id
18
18
  Kentaa::Api::Resources::Team.new(config, id: team_id, options: options)
19
+ elsif company_id
20
+ Kentaa::Api::Resources::Company.new(config, id: company_id, options: options)
19
21
  elsif project_id
20
22
  Kentaa::Api::Resources::Project.new(config, id: project_id, options: options)
21
23
  elsif segment_id
@@ -51,6 +53,10 @@ module Kentaa
51
53
  data[:project_id]
52
54
  end
53
55
 
56
+ def company_id
57
+ data[:company_id]
58
+ end
59
+
54
60
  def team_id
55
61
  data[:team_id]
56
62
  end
@@ -87,6 +93,10 @@ module Kentaa
87
93
  data[:anonymous]
88
94
  end
89
95
 
96
+ def contact_details_type
97
+ data[:contact_details_type]
98
+ end
99
+
90
100
  def email
91
101
  data[:email]
92
102
  end
@@ -16,6 +16,8 @@ module Kentaa
16
16
  Kentaa::Api::Resources::Action.new(config, id: action_id, options: options)
17
17
  elsif team_id
18
18
  Kentaa::Api::Resources::Team.new(config, id: team_id, options: options)
19
+ elsif company_id
20
+ Kentaa::Api::Resources::Company.new(config, id: company_id, options: options)
19
21
  elsif project_id
20
22
  Kentaa::Api::Resources::Project.new(config, id: project_id, options: options)
21
23
  elsif segment_id
@@ -43,6 +45,10 @@ module Kentaa
43
45
  data[:segment_id]
44
46
  end
45
47
 
48
+ def company_id
49
+ data[:company_id]
50
+ end
51
+
46
52
  def project_id
47
53
  data[:project_id]
48
54
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kentaa
4
4
  module Api
5
- VERSION = '0.7.0'
5
+ VERSION = '0.7.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kentaa-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-24 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.0.9
140
+ rubygems_version: 3.3.25
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Ruby library for communicating with the Kentaa API