Class: Google::Apis::DfareportingV4::PricingSchedulePricingPeriod

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

Overview

Pricing Period

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PricingSchedulePricingPeriod

Returns a new instance of PricingSchedulePricingPeriod.



10999
11000
11001
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10999

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

Instance Attribute Details

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


10975
10976
10977
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10975

def end_date
  @end_date
end

#pricing_commentString

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

Returns:

  • (String)


10980
10981
10982
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10980

def pricing_comment
  @pricing_comment
end

#rate_or_cost_nanosFixnum

Rate or cost of this pricing period in nanos (i.e., multiplied by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive. Corresponds to the JSON property rateOrCostNanos

Returns:

  • (Fixnum)


10986
10987
10988
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10986

def rate_or_cost_nanos
  @rate_or_cost_nanos
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


10991
10992
10993
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10991

def start_date
  @start_date
end

#unitsFixnum

Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive. Corresponds to the JSON property units

Returns:

  • (Fixnum)


10997
10998
10999
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 10997

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11004
11005
11006
11007
11008
11009
11010
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11004

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