Class: Stew::Community::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/stew/community/profile.rb

Overview

Represents the base data for a Steam Profile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Profile

Returns a new instance of Profile.



11
12
13
# File 'lib/stew/community/profile.rb', line 11

def initialize(hash)
  set_data(hash)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/stew/community/profile.rb', line 7

def id
  @id
end

#nicknameObject (readonly)

Returns the value of attribute nickname.



9
10
11
# File 'lib/stew/community/profile.rb', line 9

def nickname
  @nickname
end