Class: Spore::Client

Inherits:
Object
  • Object
show all
Includes:
Apps, Cells, Deployments, Memberships, Users
Defined in:
lib/spore/client.rb,
lib/spore/client/apps.rb,
lib/spore/client/cells.rb,
lib/spore/client/users.rb,
lib/spore/client/deployments.rb,
lib/spore/client/memberships.rb

Defined Under Namespace

Modules: Apps, Cells, Deployments, Memberships, Users

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Memberships

#accept_membership, #grant_membership, #list_memberships, #revoke_membership

Methods included from Deployments

#create_deployment, #destroy_deployment, #list_deployments

Methods included from Apps

#change_app_name, #change_app_owner, #create_app, #get_app, #list_apps

Methods included from Cells

#create_cell, #get_cell

Methods included from Users

#login, #signed_in?, #signup, #verify

Constructor Details

#initialize(email = nil, key = nil) ⇒ Client



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

def initialize(email = nil, key = nil)
  @email = email
  @key = key
end

Instance Attribute Details

#api_endpointObject

Returns the value of attribute api_endpoint.



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

def api_endpoint
  @api_endpoint
end

#emailObject

Returns the value of attribute email.



21
22
23
# File 'lib/spore/client.rb', line 21

def email
  @email
end

#keyObject

Returns the value of attribute key.



22
23
24
# File 'lib/spore/client.rb', line 22

def key
  @key
end

#middlewareObject

Returns the value of attribute middleware.



26
27
28
# File 'lib/spore/client.rb', line 26

def middleware
  @middleware
end

#user_agentObject

Returns the value of attribute user_agent.



25
26
27
# File 'lib/spore/client.rb', line 25

def user_agent
  @user_agent
end

Instance Method Details

#name=(deployment_name) ⇒ Object



33
34
35
# File 'lib/spore/client.rb', line 33

def name=(deployment_name)
  @email = deployment_name
end