Class: Google::Apis::DfareportingV3_5::Flight

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

Overview

Flight

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Flight

Returns a new instance of Flight.



5813
5814
5815
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 5813

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

Instance Attribute Details

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


5796
5797
5798
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 5796

def end_date
  @end_date
end

#rate_or_costFixnum

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

Returns:

  • (Fixnum)


5801
5802
5803
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 5801

def rate_or_cost
  @rate_or_cost
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


5806
5807
5808
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 5806

def start_date
  @start_date
end

#unitsFixnum

Units of this flight. Corresponds to the JSON property units

Returns:

  • (Fixnum)


5811
5812
5813
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 5811

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5818
5819
5820
5821
5822
5823
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 5818

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