Class: Google::Apis::DfareportingV2_6::DimensionFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/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.


4560
4561
4562
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4560

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)

4548
4549
4550
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4548

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)

4553
4554
4555
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4553

def kind
  @kind
end

#valueString

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

Returns:

  • (String)

4558
4559
4560
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4558

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4565
4566
4567
4568
4569
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4565

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