Class: BusTracker::Departure
- Inherits:
-
Object
- Object
- BusTracker::Departure
- Defined in:
- lib/bus_tracker/departure.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#due ⇒ Object
Returns the value of attribute due.
-
#service_number ⇒ Object
Returns the value of attribute service_number.
Instance Method Summary collapse
-
#initialize(raw_string) ⇒ Departure
constructor
A new instance of Departure.
Constructor Details
#initialize(raw_string) ⇒ Departure
Returns a new instance of Departure.
5 6 7 |
# File 'lib/bus_tracker/departure.rb', line 5 def initialize(raw_string) set_attributes(raw_string) end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
3 4 5 |
# File 'lib/bus_tracker/departure.rb', line 3 def destination @destination end |
#due ⇒ Object
Returns the value of attribute due.
3 4 5 |
# File 'lib/bus_tracker/departure.rb', line 3 def due @due end |
#service_number ⇒ Object
Returns the value of attribute service_number.
3 4 5 |
# File 'lib/bus_tracker/departure.rb', line 3 def service_number @service_number end |