Class: Baykit::BayServer::Common::Vehicle
- Inherits:
-
Object
- Object
- Baykit::BayServer::Common::Vehicle
- Defined in:
- lib/baykit/bayserver/common/vehicle.rb
Overview
abstract class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Vehicle
constructor
A new instance of Vehicle.
- #on_timer ⇒ Object
- #run ⇒ Object
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
#id ⇒ Object (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_timer ⇒ Object
17 18 19 |
# File 'lib/baykit/bayserver/common/vehicle.rb', line 17 def on_timer() raise NotImplementedError.new end |
#run ⇒ Object
13 14 15 |
# File 'lib/baykit/bayserver/common/vehicle.rb', line 13 def run() raise NotImplementedError.new end |