class Google::Apis::DfareportingV2_3::PricingSchedulePricingPeriod
Pricing Period
Attributes
Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. Corresponds to the JSON property `endDate` @return [Date]
Comments for this pricing period. Corresponds to the JSON property `pricingComment` @return [String]
Rate or cost of this pricing period. Corresponds to the JSON property `rateOrCostNanos` @return [String]
Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. Corresponds to the JSON property `startDate` @return [Date]
Units of this pricing period. Corresponds to the JSON property `units` @return [String]
Public Class Methods
# File generated/google/apis/dfareporting_v2_3/classes.rb, line 8305 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/dfareporting_v2_3/classes.rb, line 8310 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