Class: Ns::TravelOption
- Inherits:
-
Object
- Object
- Ns::TravelOption
- Includes:
- Model
- Defined in:
- lib/ns/travel_option.rb
Instance Attribute Summary collapse
-
#actual_arrival ⇒ Object
Returns the value of attribute actual_arrival.
-
#actual_departure ⇒ Object
Returns the value of attribute actual_departure.
-
#changes ⇒ Object
Returns the value of attribute changes.
-
#optimal ⇒ Object
Returns the value of attribute optimal.
-
#planned_arrival ⇒ Object
Returns the value of attribute planned_arrival.
-
#planned_departure ⇒ Object
Returns the value of attribute planned_departure.
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
Methods included from Model
Instance Attribute Details
#actual_arrival ⇒ Object
Returns the value of attribute actual_arrival.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def actual_arrival @actual_arrival end |
#actual_departure ⇒ Object
Returns the value of attribute actual_departure.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def actual_departure @actual_departure end |
#changes ⇒ Object
Returns the value of attribute changes.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def changes @changes end |
#optimal ⇒ Object
Returns the value of attribute optimal.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def optimal @optimal end |
#planned_arrival ⇒ Object
Returns the value of attribute planned_arrival.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def planned_arrival @planned_arrival end |
#planned_departure ⇒ Object
Returns the value of attribute planned_departure.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def planned_departure @planned_departure end |
#platform ⇒ Object
Returns the value of attribute platform.
5 6 7 |
# File 'lib/ns/travel_option.rb', line 5 def platform @platform end |
Instance Method Details
#actual_duration ⇒ Object
13 14 15 |
# File 'lib/ns/travel_option.rb', line 13 def actual_duration duration(actual_arrival, actual_departure) end |
#delay ⇒ Object
17 18 19 |
# File 'lib/ns/travel_option.rb', line 17 def delay duration(actual_departure, planned_departure) end |
#planned_duration ⇒ Object
9 10 11 |
# File 'lib/ns/travel_option.rb', line 9 def planned_duration duration(planned_arrival, planned_departure) end |