Class: Google::Apis::DfareportingV2_1::Flight

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

Flight

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Flight

Returns a new instance of Flight.



5014
5015
5016
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5014

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

Instance Attribute Details

#end_dateDate

Inventory item flight end date. Corresponds to the JSON property endDate

Returns:

  • (Date)


4997
4998
4999
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4997

def end_date
  @end_date
end

#rate_or_costString

Rate or cost of this flight. Corresponds to the JSON property rateOrCost

Returns:

  • (String)


5002
5003
5004
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5002

def rate_or_cost
  @rate_or_cost
end

#start_dateDate

Inventory item flight start date. Corresponds to the JSON property startDate

Returns:

  • (Date)


5007
5008
5009
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5007

def start_date
  @start_date
end

#unitsString

Units of this flight. Corresponds to the JSON property units

Returns:

  • (String)


5012
5013
5014
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5012

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5019
5020
5021
5022
5023
5024
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5019

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