Class: Google::Apis::DfareportingV4::CustomRule
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::CustomRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Contains custom rule information.
Instance Attribute Summary collapse
-
#name ⇒ String
Optional.
-
#priority ⇒ Fixnum
Optional.
-
#rule_blocks ⇒ Array<Google::Apis::DfareportingV4::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.
5297 5298 5299 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Optional. Name of this custom rule.
Corresponds to the JSON property name
5285 5286 5287 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5285 def name @name end |
#priority ⇒ Fixnum
Optional. Priority of the custom rule.
Corresponds to the JSON property priority
5290 5291 5292 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5290 def priority @priority end |
#rule_blocks ⇒ Array<Google::Apis::DfareportingV4::RuleBlock>
Optional. A list of field filter, the custom rule will apply.
Corresponds to the JSON property ruleBlocks
5295 5296 5297 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5295 def rule_blocks @rule_blocks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5302 5303 5304 5305 5306 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5302 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 |