Class: SteamCondenser::Community::Dota2TestInventory

Inherits:
GameInventory
  • Object
show all
Defined in:
lib/steam-condenser/community/dota2/dota2_test_inventory.rb

Overview

Represents the inventory of a player of the DotA 2 beta

Author:

  • Sebastian Staudt

Constant Summary collapse

APP_ID =

The Steam application ID of the DotA 2 beta

205790

Instance Attribute Summary

Attributes inherited from GameInventory

#app_id, #items, #preliminary_items, #user

Attributes included from Cacheable

#fetch_time

Instance Method Summary collapse

Methods inherited from GameInventory

#[], #fetch, #inspect, #item_schema, new, schema_language=, #size

Methods included from Cacheable

#cache, #cache_id_value, #cache_ids, #cached_instance, #fetch, #fetched?, included

Constructor Details

#initialize(steam_id64, fetch = true, bypass_cache = false) ⇒ Dota2TestInventory

Creates a new inventory object for the given SteamID64 in the DotA 2 beta (App ID 205790)

Parameters:

  • steam_id64 (Fixnum)

    The 64bit SteamID of the player to get the inventory for

  • fetch (Boolean)

    if true the object's data is fetched after creation

  • bypass_cache (Boolean)

    if true the object's data is fetched again even if it has been cached already


25
26
27
# File 'lib/steam-condenser/community/dota2/dota2_test_inventory.rb', line 25

def initialize(steam_id64)
  super APP_ID, steam_id64
end