Class: App
Instance Method Summary collapse
- #create_branding(app_id:) ⇒ Object
- #create_license_field(app_id:, options:) ⇒ Object
- #delete_license_field(app_id:, license_field_name:) ⇒ Object
- #edit_license_field(app_id:, license_field_name:, options:) ⇒ Object
-
#initialize(client) ⇒ App
constructor
A new instance of App.
- #list_branding(app_id:) ⇒ Object
- #list_license(app_id:) ⇒ Object
- #list_license_fields(app_id:) ⇒ Object
Constructor Details
#initialize(client) ⇒ App
Returns a new instance of App.
2 3 4 |
# File 'lib/api/app/app.rb', line 2 def initialize(client) super(client) end |
Instance Method Details
#create_branding(app_id:) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/api/app/app.rb', line 13 def create_branding(app_id:) method = "POST" endpoint = "app/" + app_id + "/branding" uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri) end |
#create_license_field(app_id:, options:) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/api/app/app.rb', line 27 def create_license_field(app_id:, options:) method = "POST" endpoint = "app/" + app_id + "/licensefield" uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri, ) end |
#delete_license_field(app_id:, license_field_name:) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/api/app/app.rb', line 41 def delete_license_field(app_id:, license_field_name:) method = "DELETE" endpoint = "app/" + app_id + "/licensefield/" + license_field_name uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri) end |
#edit_license_field(app_id:, license_field_name:, options:) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/api/app/app.rb', line 34 def edit_license_field(app_id:, license_field_name:, options:) method = "PUT" endpoint = "app/" + app_id + "/licensefield/" + license_field_name uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri, ) end |
#list_branding(app_id:) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/api/app/app.rb', line 6 def list_branding(app_id:) method = "GET" endpoint = "app/" + app_id + "/branding" uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri) end |
#list_license(app_id:) ⇒ Object
48 49 50 51 52 53 |
# File 'lib/api/app/app.rb', line 48 def list_license(app_id:) method = "GET" endpoint = "app/" + app_id + "/licenses" uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri) end |
#list_license_fields(app_id:) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/api/app/app.rb', line 20 def list_license_fields(app_id:) method = "GET" endpoint = "app/" + app_id + "/licensefield" uri = ApiUri::build_uri(endpoint) return @client.request_json(method, uri) end |