Class: Kentaa::Api::Clients::Teams
- Inherits:
-
Base
- Object
- Base
- Kentaa::Api::Clients::Teams
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
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
|