Class: Google::Apis::QpxExpressV1::AircraftData
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::AircraftData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb
Overview
The make, model, and type of an aircraft.
Instance Attribute Summary collapse
-
#code ⇒ String
The aircraft code.
-
#kind ⇒ String
Identifies this as an aircraftData object.
-
#name ⇒ String
The name of an aircraft, for example Boeing 777.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AircraftData
constructor
A new instance of AircraftData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AircraftData
Returns a new instance of AircraftData.
45 46 47 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 45 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The aircraft code. For example, for a Boeing 777 the code would be 777.
Corresponds to the JSON property code
32 33 34 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 32 def code @code end |
#kind ⇒ String
Identifies this as an aircraftData object. Value: the fixed string qpxexpress#
aircraftData
Corresponds to the JSON property kind
38 39 40 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 38 def kind @kind end |
#name ⇒ String
The name of an aircraft, for example Boeing 777.
Corresponds to the JSON property name
43 44 45 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 43 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50 51 52 53 54 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 50 def update!(**args) @code = args[:code] if args.key?(:code) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end |