Class: Google::Apis::DoubleclickbidmanagerV2::FilterPair
- Inherits:
-
Object
- Object
- Google::Apis::DoubleclickbidmanagerV2::FilterPair
- 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
-
#type ⇒ String
The type of value to filter by.
-
#value ⇒ String
The identifying value to filter by, such as a relevant resource ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FilterPair
constructor
A new instance of FilterPair.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#type ⇒ String
The type of value to filter by. Defined by a Filter value.
Corresponds to the JSON property type
121 122 123 |
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 121 def type @type end |
#value ⇒ String
The identifying value to filter by, such as a relevant resource ID.
Corresponds to the JSON property value
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 |