Class: Google::Apis::DfareportingV4::BillingRateTieredRate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BillingRateTieredRate

Returns a new instance of BillingRateTieredRate.



1637
1638
1639
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1637

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)


1625
1626
1627
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1625

def high_value
  @high_value
end

#low_valueFixnum

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

Returns:

  • (Fixnum)


1630
1631
1632
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1630

def low_value
  @low_value
end

#rate_in_microsFixnum

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

Returns:

  • (Fixnum)


1635
1636
1637
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1635

def rate_in_micros
  @rate_in_micros
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1642
1643
1644
1645
1646
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1642

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