lib/kentaa/api/resources/action.rb in kentaa-api-0.7.1 vs lib/kentaa/api/resources/action.rb in kentaa-api-0.7.2

- old
+ new

@@ -15,10 +15,12 @@ end def parent if team_id Kentaa::Api::Resources::Team.new(config, id: team_id, options: options) + elsif company_id + Kentaa::Api::Resources::Company.new(config, id: company_id, options: options) elsif project_id Kentaa::Api::Resources::Project.new(config, id: project_id, options: options) elsif segment_id Kentaa::Api::Resources::Segment.new(config, id: segment_id, options: options) else @@ -42,9 +44,13 @@ data[:segment_id] end def project_id data[:project_id] + end + + def company_id + data[:company_id] end def team_id data[:team_id] end