Class: Korba::Car

Inherits:
Object
  • Object
show all
Defined in:
lib/korba/car.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#epochObject (readonly)

Returns the value of attribute epoch.



5
6
7
# File 'lib/korba/car.rb', line 5

def epoch
  @epoch
end

#object_nameObject (readonly)

Returns the value of attribute object_name.



5
6
7
# File 'lib/korba/car.rb', line 5

def object_name
  @object_name
end

#vxObject (readonly)

Returns the value of attribute vx.



5
6
7
# File 'lib/korba/car.rb', line 5

def vx
  @vx
end

#vyObject (readonly)

Returns the value of attribute vy.



5
6
7
# File 'lib/korba/car.rb', line 5

def vy
  @vy
end

#vzObject (readonly)

Returns the value of attribute vz.



5
6
7
# File 'lib/korba/car.rb', line 5

def vz
  @vz
end

#xObject (readonly)

Returns the value of attribute x.



5
6
7
# File 'lib/korba/car.rb', line 5

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



5
6
7
# File 'lib/korba/car.rb', line 5

def y
  @y
end

#zObject (readonly)

Returns the value of attribute z.



5
6
7
# File 'lib/korba/car.rb', line 5

def z
  @z
end