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.



5189
5190
5191
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5189

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


5177
5178
5179
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5177

def name
  @name
end

#priorityFixnum

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

Returns:

  • (Fixnum)


5182
5183
5184
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 5182

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



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