Class: PlatformAPI::AddonAttachment
- Inherits:
-
Object
- Object
- PlatformAPI::AddonAttachment
- Defined in:
- lib/platform-api/client.rb
Overview
An add-on attachment represents a connection between an app and an add-on that it has been given access to.
Instance Method Summary collapse
-
#create(body = {}) ⇒ Object
Create a new add-on attachment.
-
#delete(addon_attachment_id) ⇒ Object
Delete an existing add-on attachment.
-
#info(addon_attachment_id) ⇒ Object
Info for existing add-on attachment.
-
#info_by_app(app_id_or_app_name, addon_attachment_id_or_addon_attachment_name) ⇒ Object
Info for existing add-on attachment for an app.
-
#initialize(client) ⇒ AddonAttachment
constructor
A new instance of AddonAttachment.
-
#list ⇒ Object
List existing add-on attachments.
-
#list_by_addon(addon_id_or_addon_name) ⇒ Object
List existing add-on attachments for an add-on.
-
#list_by_app(app_id_or_app_name) ⇒ Object
List existing add-on attachments for an app.
-
#resolution(body = {}) ⇒ Object
Resolve an add-on attachment from a name, optionally passing an app name.
Constructor Details
#initialize(client) ⇒ AddonAttachment
Returns a new instance of AddonAttachment.
898 899 900 |
# File 'lib/platform-api/client.rb', line 898 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new add-on attachment.
905 906 907 |
# File 'lib/platform-api/client.rb', line 905 def create(body = {}) @client..create(body) end |
#delete(addon_attachment_id) ⇒ Object
Delete an existing add-on attachment.
912 913 914 |
# File 'lib/platform-api/client.rb', line 912 def delete() @client..delete() end |
#info(addon_attachment_id) ⇒ Object
Info for existing add-on attachment.
919 920 921 |
# File 'lib/platform-api/client.rb', line 919 def info() @client..info() end |
#info_by_app(app_id_or_app_name, addon_attachment_id_or_addon_attachment_name) ⇒ Object
Info for existing add-on attachment for an app.
946 947 948 |
# File 'lib/platform-api/client.rb', line 946 def info_by_app(app_id_or_app_name, ) @client..info_by_app(app_id_or_app_name, ) end |
#list ⇒ Object
List existing add-on attachments.
924 925 926 |
# File 'lib/platform-api/client.rb', line 924 def list() @client..list() end |
#list_by_addon(addon_id_or_addon_name) ⇒ Object
List existing add-on attachments for an add-on.
931 932 933 |
# File 'lib/platform-api/client.rb', line 931 def list_by_addon(addon_id_or_addon_name) @client..list_by_addon(addon_id_or_addon_name) end |
#list_by_app(app_id_or_app_name) ⇒ Object
List existing add-on attachments for an app.
938 939 940 |
# File 'lib/platform-api/client.rb', line 938 def list_by_app(app_id_or_app_name) @client..list_by_app(app_id_or_app_name) end |
#resolution(body = {}) ⇒ Object
Resolve an add-on attachment from a name, optionally passing an app name. If there are matches it returns at least one add-on attachment (exact match) or many.
953 954 955 |
# File 'lib/platform-api/client.rb', line 953 def resolution(body = {}) @client..resolution(body) end |