Class: Lolp::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Certificate, Project, Publickey, Configuration, Connection
Defined in:
lib/lolp/client.rb,
lib/lolp/client/project.rb,
lib/lolp/client/publickey.rb,
lib/lolp/client/certificate.rb,
lib/lolp/client/authentication.rb

Defined Under Namespace

Modules: Authentication, Certificate, Project, Publickey

Instance Attribute Summary

Attributes included from Configuration

#api_endpoint, #password, #token, #username

Instance Method Summary collapse

Methods included from Publickey

#create_publickey, #delete_publickey, #publickeys

Methods included from Certificate

#create_certificate, #get_certificate

Methods included from Authentication

#authenticate

Methods included from Project

#create_custom_domain, #create_guest_pubkey, #create_project, #delete_custom_domain, #delete_guest_pubkey, #delete_project, #guest_pubkeys, #project, #project_environment_variables, #project_storage, #projects, #update_project_environment_variables

Methods included from Connection

#authenticated?, #auto_loginable?, #delete, #get, #last_response, #post, #put, #request

Methods included from Configuration

#configure, #defaults

Constructor Details

#initialize(config = {}) ⇒ Client

Returns a new instance of Client.



17
18
19
20
21
22
23
# File 'lib/lolp/client.rb', line 17

def initialize(config = {})
  defaults

  config.each do |k,v|
    instance_variable_set(:"@#{key}", v)
  end
end