class Rainforest::DefaultClient
Public Class Methods
new(api_key)
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 4 def initialize(api_key) self.refresh_from(api_key) end
Public Instance Methods
client_stats()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 18 def client_stats @client_stats ||= ClientStatsEndpoint.new(self) end
environments()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 22 def environments @environments ||= EnvironmentsEndpoint.new(self) end
generators()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 26 def generators @generators ||= GeneratorsEndpoint.new(self) end
integrations()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 30 def integrations @integrations ||= IntegrationsEndpoint.new(self) end
refresh_from(api_key)
click to toggle source
Calls superclass method
Rainforest::ApiClient#refresh_from
# File lib/rainforest/clients/default_client.rb, line 8 def refresh_from(api_key) headers = { :Accept => "application/json", :"Content-Type" => "application/json", :CLIENT_TOKEN => api_key, } params = {} super(headers, params) end
runs()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 34 def runs @runs ||= RunsEndpoint.new(self) end
schedules()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 38 def schedules @schedules ||= SchedulesEndpoint.new(self) end
site_environments()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 42 def site_environments @site_environments ||= SiteEnvironmentsEndpoint.new(self) end
sites()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 46 def sites @sites ||= SitesEndpoint.new(self) end
tests()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 50 def tests @tests ||= TestsEndpoint.new(self) end
users()
click to toggle source
# File lib/rainforest/clients/default_client.rb, line 54 def users @users ||= UsersEndpoint.new(self) end