Class: MsgGSGetPlayStatsResponse

Inherits:
Object
  • Object
show all
Includes:
SteamSerializable
Defined in:
lib/steamd/generated/steammsg.rb

Overview

Class for the MsgGSGetPlayStatsResponse in the Steam Language.

Instance Attribute Summary

Attributes included from SteamSerializable

#constants, #variables

Instance Method Summary collapse

Methods included from SteamSerializable

#consts, #deserialize, #encode_to, #flag, #serialize, #vars

Constructor Details

#initializeMsgGSGetPlayStatsResponse

Instantiate a MsgGSGetPlayStatsResponse object



984
985
986
# File 'lib/steamd/generated/steammsg.rb', line 984

def initialize
  super([{:name=>"result", :type=>"EResult", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"rank", :type=>"int", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"lifetime_connects", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"lifetime_minutes_played", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}], [])
end

Instance Method Details

#lifetime_connectsuint

Note:

defaults to

Gets the lifetime_connects variable.

Returns:

  • (uint)

    the value of lifetime_connects



1022
1023
1024
# File 'lib/steamd/generated/steammsg.rb', line 1022

def lifetime_connects
  @variables['lifetime_connects'][:value]
end

#lifetime_connects=(value) ⇒ Object

Sets the lifetime_connects variable.

Parameters:

  • value (uint)

    the new value



1029
1030
1031
# File 'lib/steamd/generated/steammsg.rb', line 1029

def lifetime_connects=(value)
  @variables['lifetime_connects'][:value] = value
end

#lifetime_minutes_playeduint

Note:

defaults to

Gets the lifetime_minutes_played variable.

Returns:

  • (uint)

    the value of lifetime_minutes_played



1037
1038
1039
# File 'lib/steamd/generated/steammsg.rb', line 1037

def lifetime_minutes_played
  @variables['lifetime_minutes_played'][:value]
end

#lifetime_minutes_played=(value) ⇒ Object

Sets the lifetime_minutes_played variable.

Parameters:

  • value (uint)

    the new value



1044
1045
1046
# File 'lib/steamd/generated/steammsg.rb', line 1044

def lifetime_minutes_played=(value)
  @variables['lifetime_minutes_played'][:value] = value
end

#rankint

Note:

defaults to

Gets the rank variable.

Returns:

  • (int)

    the value of rank



1007
1008
1009
# File 'lib/steamd/generated/steammsg.rb', line 1007

def rank
  @variables['rank'][:value]
end

#rank=(value) ⇒ Object

Sets the rank variable.

Parameters:

  • value (int)

    the new value



1014
1015
1016
# File 'lib/steamd/generated/steammsg.rb', line 1014

def rank=(value)
  @variables['rank'][:value] = value
end

#resultEResult

Note:

defaults to

Gets the result variable.

Returns:

  • (EResult)

    the value of result



992
993
994
# File 'lib/steamd/generated/steammsg.rb', line 992

def result
  @variables['result'][:value]
end

#result=(value) ⇒ Object

Sets the result variable.

Parameters:

  • value (EResult)

    the new value



999
1000
1001
# File 'lib/steamd/generated/steammsg.rb', line 999

def result=(value)
  @variables['result'][:value] = value
end