Class: PUBG::Telemetry::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/telemetry/shared/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Location

Returns a new instance of Location.



6
7
8
9
10
# File 'lib/pubg/telemetry/shared/location.rb', line 6

def initialize(args)
  @x = args["X"]
  @y = args["Y"]
  @z = args["Z"]
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



4
5
6
# File 'lib/pubg/telemetry/shared/location.rb', line 4

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



4
5
6
# File 'lib/pubg/telemetry/shared/location.rb', line 4

def y
  @y
end

#zObject (readonly)

Returns the value of attribute z.



4
5
6
# File 'lib/pubg/telemetry/shared/location.rb', line 4

def z
  @z
end