Class: Google::Apis::AdexchangebuyerV1_4::DeliveryControlFrequencyCap

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeliveryControlFrequencyCap

Returns a new instance of DeliveryControlFrequencyCap



1671
1672
1673
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1671

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

Instance Attribute Details

#max_impressionsFixnum

Corresponds to the JSON property maxImpressions

Returns:

  • (Fixnum)


1659
1660
1661
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1659

def max_impressions
  @max_impressions
end

#num_time_unitsFixnum

Corresponds to the JSON property numTimeUnits

Returns:

  • (Fixnum)


1664
1665
1666
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1664

def num_time_units
  @num_time_units
end

#time_unit_typeString

Corresponds to the JSON property timeUnitType

Returns:

  • (String)


1669
1670
1671
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1669

def time_unit_type
  @time_unit_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1676
1677
1678
1679
1680
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1676

def update!(**args)
  @max_impressions = args[:max_impressions] if args.key?(:max_impressions)
  @num_time_units = args[:num_time_units] if args.key?(:num_time_units)
  @time_unit_type = args[:time_unit_type] if args.key?(:time_unit_type)
end