Class: PUBG::Telemetry::Weapon

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attacheditemsObject (readonly)

Returns the value of attribute attacheditems.



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

def attacheditems
  @attacheditems
end

#categoryObject (readonly)

Returns the value of attribute category.



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

def category
  @category
end

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end

#itemidObject (readonly)

Returns the value of attribute itemid.



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

def itemid
  @itemid
end

#stackcountObject (readonly)

Returns the value of attribute stackcount.



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

def stackcount
  @stackcount
end

#subcategoryObject (readonly)

Returns the value of attribute subcategory.



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

def subcategory
  @subcategory
end