Flight
Inherits JSON::Serializable < Reference < Object
Constructors
new(flight_number : String, date : String, user : String = "anonymous")
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
all(limit = 100, offset = 0)
Sourceby_user(user : String, limit = 100)
Sourcecount
Sourcecount_by_user(user : String)
Sourcefind(id : Int64)
Sourcelongest_flights
Sourcesearch(flight_number : String, date : String)
Sourceshortest_flights
Sourcestats_for_user(user : String)
Sourcetop_aircraft_types
Sourcetop_airlines
Sourcetop_airports
Sourcetop_routes
Sourcetotal_distance
SourceInstance methods
aircraft_type
Sourceaircraft_type=(aircraft_type : String | Nil)
Sourcedata
Sourcedata=(data : JSON::Any | Nil)
Sourcedate
Sourcedate=(date : String)
Sourcedestination
Sourcedestination=(destination : String | Nil)
Sourcedistance_km
Sourcedistance_km=(distance_km : Int32 | Nil)
Sourceflight_number
Sourceflight_number=(flight_number : String)
Sourceid
Sourceid=(id : Int64 | Nil)
Sourceorigin
Sourceorigin=(origin : String | Nil)
Sourcesave
Sourcesubmitted_at
Sourcesubmitted_at=(submitted_at : String | Nil)
Sourceuser
Sourceuser=(user : String)
Source