Class: Google::Apis::AuthorizedbuyersmarketplaceV1alpha::StringTargetingDimension

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1alpha/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1alpha/representations.rb

Overview

Generic targeting with string values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StringTargetingDimension

Returns a new instance of StringTargetingDimension.



2736
2737
2738
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2736

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#selection_typeString

Required. How the items in this list should be targeted. Corresponds to the JSON property selectionType

Returns:

  • (String)


2729
2730
2731
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2729

def selection_type
  @selection_type
end

#valuesArray<String>

Required. The values specified. Corresponds to the JSON property values

Returns:

  • (Array<String>)


2734
2735
2736
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2734

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2741
2742
2743
2744
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2741

def update!(**args)
  @selection_type = args[:selection_type] if args.key?(:selection_type)
  @values = args[:values] if args.key?(:values)
end