Class: Kentaa::Api::Clients::Teams

Inherits:
Base
  • Object
show all
Defined in:
lib/kentaa/api/clients/teams.rb

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Kentaa::Api::Clients::Base

Instance Method Details

#all(options = {}) ⇒ Object



7
8
9
10
# File 'lib/kentaa/api/clients/teams.rb', line 7

def all(options = {})
  teams = Kentaa::Api::Resources::Teams.new(config, options)
  teams.all
end

#get(id, options = {}) ⇒ Object



17
18
19
20
# File 'lib/kentaa/api/clients/teams.rb', line 17

def get(id, options = {})
  team = Kentaa::Api::Resources::Team.new(config, options.merge(id: id))
  team.load
end

#list(options = {}) ⇒ Object



12
13
14
15
# File 'lib/kentaa/api/clients/teams.rb', line 12

def list(options = {})
  teams = Kentaa::Api::Resources::Teams.new(config, options)
  teams.load
end