Class: Google::Apis::DfareportingV5::CustomRule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomRule

Returns a new instance of CustomRule.



5223
5224
5225
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5223

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

Instance Attribute Details

#nameString

Optional. Name of this custom rule. Corresponds to the JSON property name

Returns:

  • (String)


5211
5212
5213
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5211

def name
  @name
end

#priorityFixnum

Optional. Priority of the custom rule. Corresponds to the JSON property priority

Returns:

  • (Fixnum)


5216
5217
5218
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5216

def priority
  @priority
end

#rule_blocksArray<Google::Apis::DfareportingV5::RuleBlock>

Optional. A list of field filter, the custom rule will apply. Corresponds to the JSON property ruleBlocks



5221
5222
5223
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5221

def rule_blocks
  @rule_blocks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5228
5229
5230
5231
5232
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5228

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