Class: Ratis::Vehicle
- Inherits:
-
Object
- Object
- Ratis::Vehicle
- Defined in:
- lib/ratis/fleet_location.rb
Instance Attribute Summary collapse
-
#adhchange ⇒ Object
Returns the value of attribute adhchange.
-
#adherance ⇒ Object
Returns the value of attribute adherance.
-
#direction ⇒ Object
Returns the value of attribute direction.
-
#heading ⇒ Object
Returns the value of attribute heading.
-
#inservice ⇒ Object
Returns the value of attribute inservice.
-
#offroute ⇒ Object
Returns the value of attribute offroute.
-
#reliable ⇒ Object
Returns the value of attribute reliable.
-
#route ⇒ Object
Returns the value of attribute route.
-
#route_id ⇒ Object
Returns the value of attribute route_id.
-
#speed ⇒ Object
Returns the value of attribute speed.
-
#stopped ⇒ Object
Returns the value of attribute stopped.
-
#updatetime ⇒ Object
Returns the value of attribute updatetime.
-
#vehicle_id ⇒ Object
Returns the value of attribute vehicle_id.
Instance Method Summary collapse
-
#initialize(vehicle) ⇒ Vehicle
constructor
A new instance of Vehicle.
Constructor Details
#initialize(vehicle) ⇒ Vehicle
Returns a new instance of Vehicle.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ratis/fleet_location.rb', line 6 def initialize(vehicle) @route = vehicle[:route] @direction = vehicle[:direction] @updatetime = vehicle[:updatetime] @adherance = vehicle[:adherance] @adhchange = vehicle[:adhchange] @vehicle_id = vehicle[:vehicle_id] @offroute = vehicle[:offroute] @stopped = vehicle[:stopped] @reliable = vehicle[:reliable] @inservice = vehicle[:inservice] @speed = vehicle[:speed] @heading = vehicle[:heading] @route_id = vehicle[:route_id] end |
Instance Attribute Details
#adhchange ⇒ Object
Returns the value of attribute adhchange.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def adhchange @adhchange end |
#adherance ⇒ Object
Returns the value of attribute adherance.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def adherance @adherance end |
#direction ⇒ Object
Returns the value of attribute direction.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def direction @direction end |
#heading ⇒ Object
Returns the value of attribute heading.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def heading @heading end |
#inservice ⇒ Object
Returns the value of attribute inservice.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def inservice @inservice end |
#offroute ⇒ Object
Returns the value of attribute offroute.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def offroute @offroute end |
#reliable ⇒ Object
Returns the value of attribute reliable.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def reliable @reliable end |
#route ⇒ Object
Returns the value of attribute route.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def route @route end |
#route_id ⇒ Object
Returns the value of attribute route_id.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def route_id @route_id end |
#speed ⇒ Object
Returns the value of attribute speed.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def speed @speed end |
#stopped ⇒ Object
Returns the value of attribute stopped.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def stopped @stopped end |
#updatetime ⇒ Object
Returns the value of attribute updatetime.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def updatetime @updatetime end |
#vehicle_id ⇒ Object
Returns the value of attribute vehicle_id.
4 5 6 |
# File 'lib/ratis/fleet_location.rb', line 4 def vehicle_id @vehicle_id end |