Class: FlightStats::FlightLeg
- Defined in:
- lib/flightstats/flight_leg.rb
Instance Attribute Summary collapse
-
#arrival_airport_fs_code ⇒ Object
Returns the value of attribute arrival_airport_fs_code.
-
#arrival_date_adjustment ⇒ Object
Returns the value of attribute arrival_date_adjustment.
-
#arrival_terminal ⇒ Object
Returns the value of attribute arrival_terminal.
-
#arrival_time ⇒ Object
Returns the value of attribute arrival_time.
-
#carrier_fs_code ⇒ Object
Returns the value of attribute carrier_fs_code.
-
#codeshare ⇒ Object
Returns the value of attribute codeshare.
-
#departure_airport_fs_code ⇒ Object
Returns the value of attribute departure_airport_fs_code.
-
#departure_date_adjustment ⇒ Object
Returns the value of attribute departure_date_adjustment.
-
#departure_terminal ⇒ Object
Returns the value of attribute departure_terminal.
-
#departure_time ⇒ Object
Returns the value of attribute departure_time.
-
#distance_miles ⇒ Object
Returns the value of attribute distance_miles.
-
#equipment_codes ⇒ Object
Returns the value of attribute equipment_codes.
-
#flight_duration_minutes ⇒ Object
Returns the value of attribute flight_duration_minutes.
-
#flight_number ⇒ Object
Returns the value of attribute flight_number.
-
#layover_duration_minutes ⇒ Object
Returns the value of attribute layover_duration_minutes.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#stop_codes ⇒ Object
Returns the value of attribute stop_codes.
-
#wetlease_info ⇒ Object
Returns the value of attribute wetlease_info.
Attributes inherited from Resource
#attributes, #etag, #response, #uri
Instance Method Summary collapse
Methods inherited from Resource
from_json, from_parsed_json, from_response, #initialize, string_to_model, string_to_model_with_caching, #to_param, #underscore_with_caching
Constructor Details
This class inherits a constructor from FlightStats::Resource
Instance Attribute Details
#arrival_airport_fs_code ⇒ Object
Returns the value of attribute arrival_airport_fs_code.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def arrival_airport_fs_code @arrival_airport_fs_code end |
#arrival_date_adjustment ⇒ Object
Returns the value of attribute arrival_date_adjustment.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def arrival_date_adjustment @arrival_date_adjustment end |
#arrival_terminal ⇒ Object
Returns the value of attribute arrival_terminal.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def arrival_terminal @arrival_terminal end |
#arrival_time ⇒ Object
Returns the value of attribute arrival_time.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def arrival_time @arrival_time end |
#carrier_fs_code ⇒ Object
Returns the value of attribute carrier_fs_code.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def carrier_fs_code @carrier_fs_code end |
#codeshare ⇒ Object
Returns the value of attribute codeshare.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def codeshare @codeshare end |
#departure_airport_fs_code ⇒ Object
Returns the value of attribute departure_airport_fs_code.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def departure_airport_fs_code @departure_airport_fs_code end |
#departure_date_adjustment ⇒ Object
Returns the value of attribute departure_date_adjustment.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def departure_date_adjustment @departure_date_adjustment end |
#departure_terminal ⇒ Object
Returns the value of attribute departure_terminal.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def departure_terminal @departure_terminal end |
#departure_time ⇒ Object
Returns the value of attribute departure_time.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def departure_time @departure_time end |
#distance_miles ⇒ Object
Returns the value of attribute distance_miles.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def distance_miles @distance_miles end |
#equipment_codes ⇒ Object
Returns the value of attribute equipment_codes.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def equipment_codes @equipment_codes end |
#flight_duration_minutes ⇒ Object
Returns the value of attribute flight_duration_minutes.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def flight_duration_minutes @flight_duration_minutes end |
#flight_number ⇒ Object
Returns the value of attribute flight_number.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def flight_number @flight_number end |
#layover_duration_minutes ⇒ Object
Returns the value of attribute layover_duration_minutes.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def layover_duration_minutes @layover_duration_minutes end |
#operator ⇒ Object
Returns the value of attribute operator.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def operator @operator end |
#stop_codes ⇒ Object
Returns the value of attribute stop_codes.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def stop_codes @stop_codes end |
#wetlease_info ⇒ Object
Returns the value of attribute wetlease_info.
3 4 5 |
# File 'lib/flightstats/flight_leg.rb', line 3 def wetlease_info @wetlease_info end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/flightstats/flight_leg.rb', line 22 def to_s "#{operator ? operator.carrier_fs_code : carrier_fs_code}#{flight_number}: #{departure_airport_fs_code} at #{departure_time} - #{arrival_airport_fs_code} at #{arrival_time} (+#{arrival_date_adjustment}) #{distance_miles} miles" end |