Class: Cloudenv::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudenv/client.rb

Instance Method Summary collapse

Instance Method Details

#create_app(attrs) ⇒ Object



7
8
9
# File 'lib/cloudenv/client.rb', line 7

def create_app(attrs)
  request :post, "apps", { app: attrs }
end

#get_app_variables(id) ⇒ Object



11
12
13
14
# File 'lib/cloudenv/client.rb', line 11

def get_app_variables(id)
  response = request :get, "apps/#{id}/variables"
  Environment.new(response)
end