Class: Baykit::BayServer::Common::Vehicle

Inherits:
Object
  • Object
show all
Defined in:
lib/baykit/bayserver/common/vehicle.rb

Overview

abstract class

Direct Known Subclasses

Taxi::Taxi

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Vehicle

Returns a new instance of Vehicle.



10
11
12
# File 'lib/baykit/bayserver/common/vehicle.rb', line 10

def initialize(id)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/baykit/bayserver/common/vehicle.rb', line 8

def id
  @id
end

Instance Method Details

#on_timerObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/baykit/bayserver/common/vehicle.rb', line 17

def on_timer()
  raise NotImplementedError.new
end

#runObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/baykit/bayserver/common/vehicle.rb', line 13

def run()
  raise NotImplementedError.new
end