Class: Google::Apis::DfareportingV2_5::DimensionFilter

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

Overview

Represents a dimension filter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DimensionFilter

Returns a new instance of DimensionFilter.


4458
4459
4460
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 4458

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

Instance Attribute Details

#dimension_nameString

The name of the dimension to filter. Corresponds to the JSON property dimensionName

Returns:

  • (String)

4446
4447
4448
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 4446

def dimension_name
  @dimension_name
end

#kindString

The kind of resource this is, in this case dfareporting#dimensionFilter. Corresponds to the JSON property kind

Returns:

  • (String)

4451
4452
4453
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 4451

def kind
  @kind
end

#valueString

The value of the dimension to filter. Corresponds to the JSON property value

Returns:

  • (String)

4456
4457
4458
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 4456

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4463
4464
4465
4466
4467
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 4463

def update!(**args)
  @dimension_name = args[:dimension_name] if args.key?(:dimension_name)
  @kind = args[:kind] if args.key?(:kind)
  @value = args[:value] if args.key?(:value)
end