Class: Apps

Inherits:
ApiModule show all
Defined in:
lib/api/apps/apps.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Apps

Returns a new instance of Apps.



2
3
4
# File 'lib/api/apps/apps.rb', line 2

def initialize(client)
  super(client)
end

Instance Method Details

#create(options:) ⇒ Object



27
28
29
30
31
32
# File 'lib/api/apps/apps.rb', line 27

def create(options:)
  method = "POST"
  endpoint = "app"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri, options)
end

#delete(app_id:) ⇒ Object



13
14
15
16
17
18
# File 'lib/api/apps/apps.rb', line 13

def delete(app_id:)
  method = "DELETE"
  endpoint = "app/" + app_id
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#delete_branding(app_id:) ⇒ Object



20
21
22
23
24
25
# File 'lib/api/apps/apps.rb', line 20

def delete_branding(app_id:)
  method = "DELETE"
  endpoint = "app/" + app_id + "/branding"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end

#listObject



6
7
8
9
10
11
# File 'lib/api/apps/apps.rb', line 6

def list()
  method = "GET"
  endpoint = "apps"
  uri = ApiUri::build_uri(endpoint)
  return @client.request_json(method, uri)
end