module Spore::Client::Apps
Public Instance Methods
change_app_name(app_id, name)
click to toggle source
# File lib/spore/client/apps.rb, line 25 def change_app_name(app_id, name) response = patch "apps/#{app_id}", { name: name } response.body["app"] end
change_app_owner(app_id, email)
click to toggle source
# File lib/spore/client/apps.rb, line 20 def change_app_owner(app_id, email) response = patch "apps/#{app_id}", { email: email }, { async: true } response.body["app"] end
create_app(app_id = nil, name)
click to toggle source
# File lib/spore/client/apps.rb, line 14 def create_app(app_id = nil, name) app_id = SecureRandom.uuid if app_id.nil? response = post "/apps", { id: app_id, name: name }, { async: true } response.body["app"] end
get_app(app_id)
click to toggle source
# File lib/spore/client/apps.rb, line 9 def get_app(app_id) response = get "/apps/#{app_id}" response.body["app"] end
list_apps()
click to toggle source
# File lib/spore/client/apps.rb, line 4 def list_apps response = get "/apps" response.body["apps"] end