Class: RenderAPI::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/render_api/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ Client

Returns a new instance of Client.



12
13
14
# File 'lib/render_api/client.rb', line 12

def initialize(api_key)
  @api_key = api_key
end

Instance Method Details

#deploysObject



16
17
18
# File 'lib/render_api/client.rb', line 16

def deploys
  @deploys ||= Clients::Deploys.new(endpoint)
end

#domainsObject



20
21
22
# File 'lib/render_api/client.rb', line 20

def domains
  @domains ||= Clients::Domains.new(endpoint)
end

#jobsObject



24
25
26
# File 'lib/render_api/client.rb', line 24

def jobs
  @jobs ||= Clients::Jobs.new(endpoint)
end

#ownersObject



28
29
30
# File 'lib/render_api/client.rb', line 28

def owners
  @owners ||= Clients::Owners.new(endpoint)
end

#servicesObject



32
33
34
# File 'lib/render_api/client.rb', line 32

def services
  @services ||= Clients::Services.new(endpoint)
end