Class: PUBG::Telemetry::Weapon
- Inherits:
-
Object
- Object
- PUBG::Telemetry::Weapon
- Defined in:
- lib/pubg/telemetry/shared/weapon.rb
Instance Attribute Summary collapse
-
#attacheditems ⇒ Object
readonly
Returns the value of attribute attacheditems.
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#itemid ⇒ Object
readonly
Returns the value of attribute itemid.
-
#stackcount ⇒ Object
readonly
Returns the value of attribute stackcount.
-
#subcategory ⇒ Object
readonly
Returns the value of attribute subcategory.
Instance Method Summary collapse
-
#initialize(args) ⇒ Weapon
constructor
A new instance of Weapon.
Constructor Details
#initialize(args) ⇒ Weapon
Returns a new instance of Weapon.
6 7 8 9 10 11 12 13 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 6 def initialize(args) @data = args @itemid = args["ItemId"] @stackcount = args["StackCount"] @category = args["Category"] @subcategory = args["SubCategory"] @attacheditems = args["AttachedItems"] end |
Instance Attribute Details
#attacheditems ⇒ Object (readonly)
Returns the value of attribute attacheditems.
4 5 6 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 4 def attacheditems @attacheditems end |
#category ⇒ Object (readonly)
Returns the value of attribute category.
4 5 6 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 4 def category @category end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 4 def data @data end |
#itemid ⇒ Object (readonly)
Returns the value of attribute itemid.
4 5 6 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 4 def itemid @itemid end |
#stackcount ⇒ Object (readonly)
Returns the value of attribute stackcount.
4 5 6 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 4 def stackcount @stackcount end |
#subcategory ⇒ Object (readonly)
Returns the value of attribute subcategory.
4 5 6 |
# File 'lib/pubg/telemetry/shared/weapon.rb', line 4 def subcategory @subcategory end |