Class: Google::Apis::DfareportingV2_1::DimensionFilter

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

Overview

Represents a dimension filter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DimensionFilter

Returns a new instance of DimensionFilter.



4139
4140
4141
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4139

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)


4127
4128
4129
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4127

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)


4132
4133
4134
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4132

def kind
  @kind
end

#valueString

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

Returns:

  • (String)


4137
4138
4139
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4137

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4144
4145
4146
4147
4148
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4144

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