Class: Google::Apis::DfareportingV3_3::Flight

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

Overview

Flight

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Flight

Returns a new instance of Flight.



5650
5651
5652
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5650

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

Instance Attribute Details

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


5633
5634
5635
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5633

def end_date
  @end_date
end

#rate_or_costFixnum

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

Returns:

  • (Fixnum)


5638
5639
5640
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5638

def rate_or_cost
  @rate_or_cost
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


5643
5644
5645
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5643

def start_date
  @start_date
end

#unitsFixnum

Units of this flight. Corresponds to the JSON property units

Returns:

  • (Fixnum)


5648
5649
5650
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5648

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5655
5656
5657
5658
5659
5660
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5655

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