Class: Google::Apis::DfareportingV2_3::DimensionFilter

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


4191
4192
4193
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4191

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)

4179
4180
4181
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4179

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)

4184
4185
4186
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4184

def kind
  @kind
end

#valueString

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

Returns:

  • (String)

4189
4190
4191
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4189

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4196
4197
4198
4199
4200
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4196

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