Class: Kentaa::Api::Clients::Projects

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

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods included from All

#all

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

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



14
15
16
17
# File 'lib/kentaa/api/clients/projects.rb', line 14

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

#list(options = {}) ⇒ Object



9
10
11
12
# File 'lib/kentaa/api/clients/projects.rb', line 9

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