Class: Google::Apis::DfareportingV4::CustomRule

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

Instance Method Summary collapse

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

#nameString

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

Returns:

  • (String)


5285
5286
5287
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5285

def name
  @name
end

#priorityFixnum

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

Returns:

  • (Fixnum)


5290
5291
5292
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5290

def priority
  @priority
end

#rule_blocksArray<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