Class: Google::Apis::DoubleclickbidmanagerV2::FilterPair

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

Overview

Represents a single filter rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FilterPair

Returns a new instance of FilterPair.



128
129
130
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 128

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

Instance Attribute Details

#typeString

The type of value to filter by. Defined by a Filter value. Corresponds to the JSON property type

Returns:

  • (String)


121
122
123
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 121

def type
  @type
end

#valueString

The identifying value to filter by, such as a relevant resource ID. Corresponds to the JSON property value

Returns:

  • (String)


126
127
128
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 126

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



133
134
135
136
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 133

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