class DuffelAPI::Resources::Airport
Attributes
city[R]
@return [Hash, nil]
city_name[R]
@return [String]
iata_code[R]
@return [String]
iata_country_code[R]
@return [String]
icao_code[R]
@return [String]
id[R]
@return [String]
latitude[R]
@return [Float]
longitude[R]
@return [Float]
name[R]
@return [String]
time_zone[R]
@return [String]
Public Class Methods
new(object, response = nil)
click to toggle source
Calls superclass method
# File lib/duffel_api/resources/airport.rb, line 37 def initialize(object, response = nil) @object = object @city = object["city"] @city_name = object["city_name"] @iata_code = object["iata_code"] @iata_country_code = object["iata_country_code"] @icao_code = object["icao_code"] @id = object["id"] @latitude = object["latitude"] @longitude = object["longitude"] @name = object["name"] @time_zone = object["time_zone"] super(object, response) end