Class: Google::Apis::DfareportingV5::BillingRateTieredRate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BillingRateTieredRate

Returns a new instance of BillingRateTieredRate.



1583
1584
1585
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1583

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

Instance Attribute Details

#high_valueFixnum

The maximum for this tier range. Corresponds to the JSON property highValue

Returns:

  • (Fixnum)


1571
1572
1573
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1571

def high_value
  @high_value
end

#low_valueFixnum

The minimum for this tier range. Corresponds to the JSON property lowValue

Returns:

  • (Fixnum)


1576
1577
1578
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1576

def low_value
  @low_value
end

#rate_in_microsFixnum

Rate in micros for this tier. Corresponds to the JSON property rateInMicros

Returns:

  • (Fixnum)


1581
1582
1583
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1581

def rate_in_micros
  @rate_in_micros
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1588
1589
1590
1591
1592
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1588

def update!(**args)
  @high_value = args[:high_value] if args.key?(:high_value)
  @low_value = args[:low_value] if args.key?(:low_value)
  @rate_in_micros = args[:rate_in_micros] if args.key?(:rate_in_micros)
end