Class: PlatformAPI::AddonConfig
- Inherits:
-
Object
- Object
- PlatformAPI::AddonConfig
- Defined in:
- lib/platform-api/client.rb
Overview
Configuration of an Add-on
Instance Method Summary collapse
-
#initialize(client) ⇒ AddonConfig
constructor
A new instance of AddonConfig.
-
#list(addon_id_or_addon_name) ⇒ Object
Get an add-on's config.
-
#update(addon_id_or_addon_name, body = {}) ⇒ Object
Update an add-on's config.
Constructor Details
#initialize(client) ⇒ AddonConfig
Returns a new instance of AddonConfig.
708 709 710 |
# File 'lib/platform-api/client.rb', line 708 def initialize(client) @client = client end |
Instance Method Details
#list(addon_id_or_addon_name) ⇒ Object
Get an add-on's config
715 716 717 |
# File 'lib/platform-api/client.rb', line 715 def list(addon_id_or_addon_name) @client.addon_config.list(addon_id_or_addon_name) end |
#update(addon_id_or_addon_name, body = {}) ⇒ Object
Update an add-on's config.
723 724 725 |
# File 'lib/platform-api/client.rb', line 723 def update(addon_id_or_addon_name, body = {}) @client.addon_config.update(addon_id_or_addon_name, body) end |