Class: Google::Apis::DfareportingV2_3::Flight
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_3::Flight
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_3/classes.rb,
generated/google/apis/dfareporting_v2_3/representations.rb,
generated/google/apis/dfareporting_v2_3/representations.rb
Overview
Flight
Instance Attribute Summary collapse
-
#end_date ⇒ Date
Inventory item flight end date.
-
#rate_or_cost ⇒ String
Rate or cost of this flight.
-
#start_date ⇒ Date
Inventory item flight start date.
-
#units ⇒ String
Units of this flight.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Flight
constructor
A new instance of Flight.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Flight
Returns a new instance of Flight.
5084 5085 5086 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 5084 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ Date
Inventory item flight end date.
Corresponds to the JSON property endDate
5067 5068 5069 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 5067 def end_date @end_date end |
#rate_or_cost ⇒ String
Rate or cost of this flight.
Corresponds to the JSON property rateOrCost
5072 5073 5074 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 5072 def rate_or_cost @rate_or_cost end |
#start_date ⇒ Date
Inventory item flight start date.
Corresponds to the JSON property startDate
5077 5078 5079 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 5077 def start_date @start_date end |
#units ⇒ String
Units of this flight.
Corresponds to the JSON property units
5082 5083 5084 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 5082 def units @units end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5089 5090 5091 5092 5093 5094 |
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 5089 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 |