Class: Stew::Community::Profile
- Inherits:
-
Object
- Object
- Stew::Community::Profile
- Defined in:
- lib/stew/community/profile.rb
Overview
Represents the base data for a Steam Profile
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Profile
constructor
A new instance of Profile.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/stew/community/profile.rb', line 7 def id @id end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
9 10 11 |
# File 'lib/stew/community/profile.rb', line 9 def nickname @nickname end |