Class: Google::Apis::DfareportingV2_3::PricingSchedulePricingPeriod
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_3::PricingSchedulePricingPeriod
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_3/classes.rb,
generated/google/apis/dfareporting_v2_3/representations.rb,
generated/google/apis/dfareporting_v2_3/representations.rb
Overview
Pricing Period
Instance Attribute Summary collapse
-
#end_date ⇒ Date
Pricing period end date.
-
#pricing_comment ⇒ String
Comments for this pricing period.
-
#rate_or_cost_nanos ⇒ String
Rate or cost of this pricing period.
-
#start_date ⇒ Date
Pricing period start date.
-
#units ⇒ String
Units of this pricing period.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PricingSchedulePricingPeriod
constructor
A new instance of PricingSchedulePricingPeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PricingSchedulePricingPeriod
Returns a new instance of PricingSchedulePricingPeriod
8314 8315 8316 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8314 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ Date
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
8290 8291 8292 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8290 def end_date @end_date end |
#pricing_comment ⇒ String
Comments for this pricing period.
Corresponds to the JSON property pricingComment
8295 8296 8297 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8295 def pricing_comment @pricing_comment end |
#rate_or_cost_nanos ⇒ String
Rate or cost of this pricing period.
Corresponds to the JSON property rateOrCostNanos
8300 8301 8302 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8300 def rate_or_cost_nanos @rate_or_cost_nanos end |
#start_date ⇒ Date
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
8307 8308 8309 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8307 def start_date @start_date end |
#units ⇒ String
Units of this pricing period.
Corresponds to the JSON property units
8312 8313 8314 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8312 def units @units end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8319 8320 8321 8322 8323 8324 8325 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 8319 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 |