Class: PUBG::Telemetry::Location
- Inherits:
-
Object
- Object
- PUBG::Telemetry::Location
- Defined in:
- lib/pubg/telemetry/shared/location.rb
Instance Attribute Summary collapse
-
#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(args) ⇒ Location
constructor
A new instance of Location.
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
#x ⇒ Object (readonly)
Returns the value of attribute x.
4 5 6 |
# File 'lib/pubg/telemetry/shared/location.rb', line 4 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
4 5 6 |
# File 'lib/pubg/telemetry/shared/location.rb', line 4 def y @y end |
#z ⇒ Object (readonly)
Returns the value of attribute z.
4 5 6 |
# File 'lib/pubg/telemetry/shared/location.rb', line 4 def z @z end |