Class: Google::Apis::DfareportingV4::Flight
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::Flight
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Flight
Instance Attribute Summary collapse
-
#end_date ⇒ Date
Corresponds to the JSON property
endDate
. -
#rate_or_cost ⇒ Fixnum
Rate or cost of this flight.
-
#start_date ⇒ Date
Corresponds to the JSON property
startDate
. -
#units ⇒ Fixnum
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.
Constructor Details
#initialize(**args) ⇒ Flight
Returns a new instance of Flight.
6106 6107 6108 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_date ⇒ Date
Corresponds to the JSON property endDate
6089 6090 6091 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6089 def end_date @end_date end |
#rate_or_cost ⇒ Fixnum
Rate or cost of this flight.
Corresponds to the JSON property rateOrCost
6094 6095 6096 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6094 def rate_or_cost @rate_or_cost end |
#start_date ⇒ Date
Corresponds to the JSON property startDate
6099 6100 6101 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6099 def start_date @start_date end |
#units ⇒ Fixnum
Units of this flight.
Corresponds to the JSON property units
6104 6105 6106 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6104 def units @units end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6111 6112 6113 6114 6115 6116 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6111 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 |