kentaa-api 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/kentaa/api/resources/consent.rb +4 -0
- data/lib/kentaa/api/resources/donation.rb +10 -0
- data/lib/kentaa/api/resources/manual_donation.rb +6 -0
- data/lib/kentaa/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04451de6b9a5dd6b328e8ad1c9be31b801724bef93e241121aa52fdd405ca42d
|
4
|
+
data.tar.gz: c8eba8ba2aafb55dd1ae14cee1ab24e960fdc2000d831927aafea0dec2028285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db13df5861b14bd55f3405e8ed30f56da822d0f5660edfb6806d2756e7b1f8f4d70ef75ae003c182339ee2ec1668c0e336bb1dc5ae3d4a8ca8f8b521ad1af336
|
7
|
+
data.tar.gz: abcb417700fcf572bbf8ff70dc325fc75b4074d3fd8bffd250c5970aae2b6f6c62bfd2667e966c21f208bb262e282ed06f41d54c6ccb624f999d780917342b67
|
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
|
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
|
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
|
449
|
+
# Authenticate a User
|
450
450
|
user = client.users.auth(email: "john.doe@kentaa.nl", password: "secret")
|
451
451
|
|
452
452
|
user.id # => 1
|
@@ -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
|
data/lib/kentaa/api/version.rb
CHANGED
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.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|