Class: PlatformAPI::OrganizationFeature

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

An organization feature represents a feature enabled on an organization account.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ OrganizationFeature

Returns a new instance of OrganizationFeature.


1797
1798
1799
# File 'lib/platform-api/client.rb', line 1797

def initialize(client)
  @client = client
end

Instance Method Details

#info(organization_name_or_organization_id, organization_feature_id_or_organization_feature_name) ⇒ Object

Info for an existing account feature.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization

  • organization_feature_id_or_organization_feature_name:

    unique identifier of organization feature or unique name of organization feature


1805
1806
1807
# File 'lib/platform-api/client.rb', line 1805

def info(organization_name_or_organization_id, organization_feature_id_or_organization_feature_name)
  @client.organization_feature.info(organization_name_or_organization_id, organization_feature_id_or_organization_feature_name)
end

#list(organization_name_or_organization_id) ⇒ Object

List existing organization features.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization


1812
1813
1814
# File 'lib/platform-api/client.rb', line 1812

def list(organization_name_or_organization_id)
  @client.organization_feature.list(organization_name_or_organization_id)
end