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_add_on(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.
Constructor Details
#initialize(client) ⇒ AddonAttachment
Returns a new instance of AddonAttachment.
653 654 655 |
# File 'lib/platform-api/client.rb', line 653 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new add-on attachment.
660 661 662 |
# File 'lib/platform-api/client.rb', line 660 def create(body = {}) @client..create(body) end |
#delete(addon_attachment_id) ⇒ Object
Delete an existing add-on attachment.
667 668 669 |
# File 'lib/platform-api/client.rb', line 667 def delete() @client..delete() end |
#info(addon_attachment_id) ⇒ Object
Info for existing add-on attachment.
674 675 676 |
# File 'lib/platform-api/client.rb', line 674 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.
701 702 703 |
# File 'lib/platform-api/client.rb', line 701 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.
679 680 681 |
# File 'lib/platform-api/client.rb', line 679 def list() @client..list() end |
#list_by_add_on(addon_id_or_addon_name) ⇒ Object
List existing add-on attachments for an add-on.
686 687 688 |
# File 'lib/platform-api/client.rb', line 686 def list_by_add_on(addon_id_or_addon_name) @client..list_by_add_on(addon_id_or_addon_name) end |
#list_by_app(app_id_or_app_name) ⇒ Object
List existing add-on attachments for an app.
693 694 695 |
# File 'lib/platform-api/client.rb', line 693 def list_by_app(app_id_or_app_name) @client..list_by_app(app_id_or_app_name) end |