class Google::Apis::DfareportingV3_3::PricingSchedulePricingPeriod
Pricing
Period
Attributes
end_date[RW]
Corresponds to the JSON property `endDate` @return [Date]
pricing_comment[RW]
Comments for this pricing period. Corresponds to the JSON property `pricingComment` @return [String]
rate_or_cost_nanos[RW]
Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive. Corresponds to the JSON property `rateOrCostNanos` @return [Fixnum]
start_date[RW]
Corresponds to the JSON property `startDate` @return [Date]
units[RW]
Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive. Corresponds to the JSON property `units` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dfareporting_v3_3/classes.rb, line 9047 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/dfareporting_v3_3/classes.rb, line 9052 def update!(**args) @end_date = args[:end_date] if args.key?(:end_date) @pricing_comment = args[:pricing_comment] if args.key?(:pricing_comment) @rate_or_cost_nanos = args[:rate_or_cost_nanos] if args.key?(:rate_or_cost_nanos) @start_date = args[:start_date] if args.key?(:start_date) @units = args[:units] if args.key?(:units) end