Class: Google::Apis::QpxExpressV1::AircraftData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#codeString

The aircraft code. For example, for a Boeing 777 the code would be 777. Corresponds to the JSON property code

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 32

def code
  @code
end

#kindString

Identifies this as an aircraftData object. Value: the fixed string qpxexpress# aircraftData Corresponds to the JSON property kind

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 38

def kind
  @kind
end

#nameString

The name of an aircraft, for example Boeing 777. Corresponds to the JSON property name

Returns:

  • (String)


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