Class: PinterestSdkClient::MetricsReportingLevel
- Inherits:
-
Object
- Object
- PinterestSdkClient::MetricsReportingLevel
- Defined in:
- lib/pinterest_sdk/models/metrics_reporting_level.rb
Constant Summary collapse
- ADVERTISER =
"ADVERTISER".freeze
- ADVERTISER_TARGETING =
"ADVERTISER_TARGETING".freeze
- CAMPAIGN =
"CAMPAIGN".freeze
- CAMPAIGN_TARGETING =
"CAMPAIGN_TARGETING".freeze
- AD_GROUP =
"AD_GROUP".freeze
- AD_GROUP_TARGETING =
"AD_GROUP_TARGETING".freeze
- PIN_PROMOTION =
"PIN_PROMOTION".freeze
- PIN_PROMOTION_TARGETING =
"PIN_PROMOTION_TARGETING".freeze
- KEYWORD =
"KEYWORD".freeze
- PRODUCT_GROUP =
"PRODUCT_GROUP".freeze
- PRODUCT_GROUP_TARGETING =
"PRODUCT_GROUP_TARGETING".freeze
- PRODUCT_ITEM =
"PRODUCT_ITEM".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 |
# File 'lib/pinterest_sdk/models/metrics_reporting_level.rb', line 34 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 44 45 |
# File 'lib/pinterest_sdk/models/metrics_reporting_level.rb', line 41 def build_from_hash(value) constantValues = MetricsReportingLevel.constants.select { |c| MetricsReportingLevel::const_get(c) == value } raise "Invalid ENUM value #{value} for class #MetricsReportingLevel" if constantValues.empty? value end |