Class: Google::Apis::DfareportingV3_4::Flight

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

Overview

Flight

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Flight

Returns a new instance of Flight.



6264
6265
6266
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6264

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

Instance Attribute Details

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


6247
6248
6249
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6247

def end_date
  @end_date
end

#rate_or_costFixnum

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

Returns:

  • (Fixnum)


6252
6253
6254
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6252

def rate_or_cost
  @rate_or_cost
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


6257
6258
6259
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6257

def start_date
  @start_date
end

#unitsFixnum

Units of this flight. Corresponds to the JSON property units

Returns:

  • (Fixnum)


6262
6263
6264
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6262

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6269
6270
6271
6272
6273
6274
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6269

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