Class: Google::Apis::DfareportingV2_1::PricingSchedulePricingPeriod

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

Overview

Pricing Period

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PricingSchedulePricingPeriod

Returns a new instance of PricingSchedulePricingPeriod.



8233
8234
8235
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8233

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

Instance Attribute Details

#end_dateDate

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

Returns:

  • (Date)


8209
8210
8211
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8209

def end_date
  @end_date
end

#pricing_commentString

Comments for this pricing period. Corresponds to the JSON property pricingComment

Returns:

  • (String)


8214
8215
8216
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8214

def pricing_comment
  @pricing_comment
end

#rate_or_cost_nanosString

Rate or cost of this pricing period. Corresponds to the JSON property rateOrCostNanos

Returns:

  • (String)


8219
8220
8221
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8219

def rate_or_cost_nanos
  @rate_or_cost_nanos
end

#start_dateDate

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

Returns:

  • (Date)


8226
8227
8228
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8226

def start_date
  @start_date
end

#unitsString

Units of this pricing period. Corresponds to the JSON property units

Returns:

  • (String)


8231
8232
8233
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8231

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8238
8239
8240
8241
8242
8243
8244
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 8238

def update!(**args)
  @end_date = args[:end_date] unless args[:end_date].nil?
  @pricing_comment = args[:pricing_comment] unless args[:pricing_comment].nil?
  @rate_or_cost_nanos = args[:rate_or_cost_nanos] unless args[:rate_or_cost_nanos].nil?
  @start_date = args[:start_date] unless args[:start_date].nil?
  @units = args[:units] unless args[:units].nil?
end