kentaa-api 0.7.1 → 0.7.2

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
  SHA256:
3
- metadata.gz: 04451de6b9a5dd6b328e8ad1c9be31b801724bef93e241121aa52fdd405ca42d
4
- data.tar.gz: c8eba8ba2aafb55dd1ae14cee1ab24e960fdc2000d831927aafea0dec2028285
3
+ metadata.gz: fd192c8023f46af9cea803f98b001a9ea269b7624ef185351aded186ff9e4cae
4
+ data.tar.gz: 729ee7893d096aa4262dcf9fa306e50f5ae9e8e4660b5bfb1cdc13bd23ad0d1a
5
5
  SHA512:
6
- metadata.gz: db13df5861b14bd55f3405e8ed30f56da822d0f5660edfb6806d2756e7b1f8f4d70ef75ae003c182339ee2ec1668c0e336bb1dc5ae3d4a8ca8f8b521ad1af336
7
- data.tar.gz: abcb417700fcf572bbf8ff70dc325fc75b4074d3fd8bffd250c5970aae2b6f6c62bfd2667e966c21f208bb262e282ed06f41d54c6ccb624f999d780917342b67
6
+ metadata.gz: f99a58f693ee130c32d81b89559eaf1b7e56454daef25b2954df048a905495c45dd019c4e348f666b51302f523345705a71de3b4698be8b6a037d224541af4fd
7
+ data.tar.gz: 6e59aedd98b789cc4e8a848b6ce8489bdf58e8428d29ef4cf805b452a914d56c3ba24d774cf7c263a8978bbe8f85c041f6ae728e25a1f61bf22893a3cb1935fd
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kentaa
4
4
  module Api
5
- VERSION = '0.7.1'
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.1
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-12-20 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