Class: Google::Apis::DfareportingV2_8::Flight

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

Overview

Flight

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Flight

Returns a new instance of Flight



5750
5751
5752
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 5750

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

Instance Attribute Details

#end_dateDate

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

Returns:

  • (Date)


5733
5734
5735
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 5733

def end_date
  @end_date
end

#rate_or_costFixnum

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

Returns:

  • (Fixnum)


5738
5739
5740
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 5738

def rate_or_cost
  @rate_or_cost
end

#start_dateDate

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

Returns:

  • (Date)


5743
5744
5745
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 5743

def start_date
  @start_date
end

#unitsFixnum

Units of this flight. Corresponds to the JSON property units

Returns:

  • (Fixnum)


5748
5749
5750
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 5748

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5755
5756
5757
5758
5759
5760
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 5755

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