class DuffelAPI::Resources::Aircraft

Attributes

iata_code[R]

@return [String]

id[R]

@return [String]

name[R]

@return [String]

Public Class Methods

new(object, response = nil) click to toggle source
Calls superclass method
# File lib/duffel_api/resources/aircraft.rb, line 16
def initialize(object, response = nil)
  @object = object

  @iata_code = object["iata_code"]
  @id = object["id"]
  @name = object["name"]

  super(object, response)
end