Class: Google::Apis::TravelimpactmodelV1::Market
- Inherits:
-
Object
- Object
- Google::Apis::TravelimpactmodelV1::Market
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/travelimpactmodel_v1/classes.rb,
lib/google/apis/travelimpactmodel_v1/representations.rb,
lib/google/apis/travelimpactmodel_v1/representations.rb
Overview
A pair of airports.
Instance Attribute Summary collapse
-
#destination ⇒ String
Required.
-
#origin ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Market
constructor
A new instance of Market.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Market
Returns a new instance of Market.
419 420 421 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 419 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination ⇒ String
Required. IATA airport code for flight destination, e.g. "JFK".
Corresponds to the JSON property destination
412 413 414 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 412 def destination @destination end |
#origin ⇒ String
Required. IATA airport code for flight origin, e.g. "LHR".
Corresponds to the JSON property origin
417 418 419 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 417 def origin @origin end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
424 425 426 427 |
# File 'lib/google/apis/travelimpactmodel_v1/classes.rb', line 424 def update!(**args) @destination = args[:destination] if args.key?(:destination) @origin = args[:origin] if args.key?(:origin) end |