Class: Google::Apis::DfareportingV2_1::Flight
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::Flight
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/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::Hashable
Constructor Details
#initialize(**args) ⇒ Flight
Returns a new instance of Flight
5014 5015 5016 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5014 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ Date
Inventory item flight end date.
Corresponds to the JSON property endDate
4997 4998 4999 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4997 def end_date @end_date end |
#rate_or_cost ⇒ String
Rate or cost of this flight.
Corresponds to the JSON property rateOrCost
5002 5003 5004 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5002 def rate_or_cost @rate_or_cost end |
#start_date ⇒ Date
Inventory item flight start date.
Corresponds to the JSON property startDate
5007 5008 5009 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5007 def start_date @start_date end |
#units ⇒ String
Units of this flight.
Corresponds to the JSON property units
5012 5013 5014 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5012 def units @units end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5019 5020 5021 5022 5023 5024 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 5019 def update!(**args) @end_date = args[:end_date] unless args[:end_date].nil? @rate_or_cost = args[:rate_or_cost] unless args[:rate_or_cost].nil? @start_date = args[:start_date] unless args[:start_date].nil? @units = args[:units] unless args[:units].nil? end |