Class: Ratis::Vehicle

Inherits:
Object
  • Object
show all
Defined in:
lib/ratis/fleet_location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#adhchangeObject

Returns the value of attribute adhchange.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def adhchange
  @adhchange
end

#adheranceObject

Returns the value of attribute adherance.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def adherance
  @adherance
end

#directionObject

Returns the value of attribute direction.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def direction
  @direction
end

#headingObject

Returns the value of attribute heading.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def heading
  @heading
end

#inserviceObject

Returns the value of attribute inservice.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def inservice
  @inservice
end

#offrouteObject

Returns the value of attribute offroute.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def offroute
  @offroute
end

#reliableObject

Returns the value of attribute reliable.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def reliable
  @reliable
end

#routeObject

Returns the value of attribute route.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def route
  @route
end

#route_idObject

Returns the value of attribute route_id.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def route_id
  @route_id
end

#speedObject

Returns the value of attribute speed.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def speed
  @speed
end

#stoppedObject

Returns the value of attribute stopped.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def stopped
  @stopped
end

#updatetimeObject

Returns the value of attribute updatetime.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def updatetime
  @updatetime
end

#vehicle_idObject

Returns the value of attribute vehicle_id.



4
5
6
# File 'lib/ratis/fleet_location.rb', line 4

def vehicle_id
  @vehicle_id
end