Class: PlatformAPI::AddonAttachment

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(client) ⇒ AddonAttachment

Returns a new instance of AddonAttachment.



1072
1073
1074
# File 'lib/platform-api/client.rb', line 1072

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object



1084
1085
1086
# File 'lib/platform-api/client.rb', line 1084

def create(body = {})
  @client.addon_attachment.create(body)
end

#delete(addon_attachment_id) ⇒ Object



1096
1097
1098
# File 'lib/platform-api/client.rb', line 1096

def delete(addon_attachment_id)
  @client.addon_attachment.delete(addon_attachment_id)
end

#info(addon_attachment_id) ⇒ Object



1108
1109
1110
# File 'lib/platform-api/client.rb', line 1108

def info(addon_attachment_id)
  @client.addon_attachment.info(addon_attachment_id)
end

#info_by_app(app_id_or_app_name, addon_attachment_id_or_addon_attachment_name) ⇒ Object



1153
1154
1155
# File 'lib/platform-api/client.rb', line 1153

def info_by_app(app_id_or_app_name, addon_attachment_id_or_addon_attachment_name)
  @client.addon_attachment.info_by_app(app_id_or_app_name, addon_attachment_id_or_addon_attachment_name)
end

#listObject

List existing add-on attachments.



1115
1116
1117
# File 'lib/platform-api/client.rb', line 1115

def list()
  @client.addon_attachment.list()
end

#list_by_addon(addon_id_or_addon_name) ⇒ Object



1127
1128
1129
# File 'lib/platform-api/client.rb', line 1127

def list_by_addon(addon_id_or_addon_name)
  @client.addon_attachment.list_by_addon(addon_id_or_addon_name)
end

#list_by_app(app_id_or_app_name) ⇒ Object



1139
1140
1141
# File 'lib/platform-api/client.rb', line 1139

def list_by_app(app_id_or_app_name)
  @client.addon_attachment.list_by_app(app_id_or_app_name)
end

#resolution(body = {}) ⇒ Object



1165
1166
1167
# File 'lib/platform-api/client.rb', line 1165

def resolution(body = {})
  @client.addon_attachment.resolution(body)
end