Class: BusTracker::Departure

Inherits:
Object
  • Object
show all
Defined in:
lib/bus_tracker/departure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#destinationObject

Returns the value of attribute destination.



3
4
5
# File 'lib/bus_tracker/departure.rb', line 3

def destination
  @destination
end

#dueObject

Returns the value of attribute due.



3
4
5
# File 'lib/bus_tracker/departure.rb', line 3

def due
  @due
end

#service_numberObject

Returns the value of attribute service_number.



3
4
5
# File 'lib/bus_tracker/departure.rb', line 3

def service_number
  @service_number
end