Class: Google::Apis::DfareportingV5::CustomRule
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV5::CustomRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v5/classes.rb,
lib/google/apis/dfareporting_v5/representations.rb,
lib/google/apis/dfareporting_v5/representations.rb
Overview
Contains custom rule information.
Instance Attribute Summary collapse
-
#name ⇒ String
Optional.
-
#priority ⇒ Fixnum
Optional.
-
#rule_blocks ⇒ Array<Google::Apis::DfareportingV5::RuleBlock>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomRule
constructor
A new instance of CustomRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomRule
Returns a new instance of CustomRule.
5189 5190 5191 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5189 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Optional. Name of this custom rule.
Corresponds to the JSON property name
5177 5178 5179 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5177 def name @name end |
#priority ⇒ Fixnum
Optional. Priority of the custom rule.
Corresponds to the JSON property priority
5182 5183 5184 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5182 def priority @priority end |
#rule_blocks ⇒ Array<Google::Apis::DfareportingV5::RuleBlock>
Optional. A list of field filter, the custom rule will apply.
Corresponds to the JSON property ruleBlocks
5187 5188 5189 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5187 def rule_blocks @rule_blocks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5194 5195 5196 5197 5198 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5194 def update!(**args) @name = args[:name] if args.key?(:name) @priority = args[:priority] if args.key?(:priority) @rule_blocks = args[:rule_blocks] if args.key?(:rule_blocks) end |