Class: Google::Apis::DfareportingV3_3::DimensionFilter

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


4884
4885
4886
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4884

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)

4872
4873
4874
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4872

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)

4877
4878
4879
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4877

def kind
  @kind
end

#valueString

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

Returns:

  • (String)

4882
4883
4884
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4882

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4889
4890
4891
4892
4893
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 4889

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