Class: Spore::Client
- Inherits:
-
Object
- Object
- Spore::Client
- 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
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#email ⇒ Object
Returns the value of attribute email.
-
#key ⇒ Object
Returns the value of attribute key.
-
#middleware ⇒ Object
Returns the value of attribute middleware.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize(email = nil, key = nil) ⇒ Client
constructor
A new instance of Client.
- #name=(deployment_name) ⇒ Object
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
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_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
24 25 26 |
# File 'lib/spore/client.rb', line 24 def api_endpoint @api_endpoint end |
#email ⇒ Object
Returns the value of attribute email.
21 22 23 |
# File 'lib/spore/client.rb', line 21 def email @email end |
#key ⇒ Object
Returns the value of attribute key.
22 23 24 |
# File 'lib/spore/client.rb', line 22 def key @key end |
#middleware ⇒ Object
Returns the value of attribute middleware.
26 27 28 |
# File 'lib/spore/client.rb', line 26 def middleware @middleware end |
#user_agent ⇒ Object
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 |