Class: SteamCondenser::Community::GameStatsDatum::Instance

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user, datum, value) ⇒ Instance


47
48
49
50
51
# File 'lib/steam-condenser/community/game_stats_datum.rb', line 47

def initialize(user, datum, value)
  @datum = datum
  @user  = user
  @value = value
end

Instance Attribute Details

#datumObject (readonly)

Returns the value of attribute datum


41
42
43
# File 'lib/steam-condenser/community/game_stats_datum.rb', line 41

def datum
  @datum
end

#userObject (readonly)

Returns the value of attribute user


43
44
45
# File 'lib/steam-condenser/community/game_stats_datum.rb', line 43

def user
  @user
end

#valueObject (readonly)

Returns the value of attribute value


45
46
47
# File 'lib/steam-condenser/community/game_stats_datum.rb', line 45

def value
  @value
end

Instance Method Details

#inspectObject


53
54
55
# File 'lib/steam-condenser/community/game_stats_datum.rb', line 53

def inspect
  "#<#{self.class}: #{@datum.api_name} (#@value)>"
end