Class: TF2Inventory
- Inherits:
-
GameInventory
- Object
- GameInventory
- TF2Inventory
- Defined in:
- lib/steam/community/tf2/tf2_inventory.rb
Overview
Represents the inventory (aka. Backpack) of a Team Fortress 2 player
Constant Summary collapse
- APP_ID =
The Steam application ID of Team Fortress 2
440
- @@item_class =
The class representing Team Fortress 2 items
TF2Item
Instance Attribute Summary
Attributes inherited from GameInventory
#app_id, #items, #preliminary_items, #user
Attributes included from Cacheable
Instance Method Summary collapse
-
#initialize(steam_id64, fetch = true, bypass_cache = false) ⇒ TF2Inventory
constructor
Creates a new inventory object for the given SteamID64 in Team Fortress 2 (App ID 440).
Methods inherited from GameInventory
#[], #fetch, #inspect, #item_schema, new, schema_language=, #size
Methods included from Cacheable
#cache, #fetch, #fetched?, included
Constructor Details
#initialize(steam_id64, fetch = true, bypass_cache = false) ⇒ TF2Inventory
Creates a new inventory object for the given SteamID64 in Team Fortress 2 (App ID 440)
23 24 25 |
# File 'lib/steam/community/tf2/tf2_inventory.rb', line 23 def initialize(steam_id64) super APP_ID, steam_id64 end |