Class: Korba::Car
- Inherits:
-
Object
- Object
- Korba::Car
- Defined in:
- lib/korba/car.rb
Instance Attribute Summary collapse
-
#epoch ⇒ Object
readonly
Returns the value of attribute epoch.
-
#object_name ⇒ Object
readonly
Returns the value of attribute object_name.
-
#vx ⇒ Object
readonly
Returns the value of attribute vx.
-
#vy ⇒ Object
readonly
Returns the value of attribute vy.
-
#vz ⇒ Object
readonly
Returns the value of attribute vz.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
-
#z ⇒ Object
readonly
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize(object_name:, epoch:, x:, y:, z:, vx:, vy:, vz:) ⇒ Car
constructor
A new instance of Car.
Constructor Details
#initialize(object_name:, epoch:, x:, y:, z:, vx:, vy:, vz:) ⇒ Car
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/korba/car.rb', line 7 def initialize(object_name:, epoch:, x:, y:, z:, vx:, vy:, vz:) @object_name = object_name @epoch = epoch @x = x @y = y @z = z @vx = vx @vy = vy @vz = vz end |
Instance Attribute Details
#epoch ⇒ Object (readonly)
Returns the value of attribute epoch.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def epoch @epoch end |
#object_name ⇒ Object (readonly)
Returns the value of attribute object_name.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def object_name @object_name end |
#vx ⇒ Object (readonly)
Returns the value of attribute vx.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def vx @vx end |
#vy ⇒ Object (readonly)
Returns the value of attribute vy.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def vy @vy end |
#vz ⇒ Object (readonly)
Returns the value of attribute vz.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def vz @vz end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def y @y end |
#z ⇒ Object (readonly)
Returns the value of attribute z.
5 6 7 |
# File 'lib/korba/car.rb', line 5 def z @z end |