Class: MinecraftAuth::Profile
- Inherits:
-
Object
- Object
- MinecraftAuth::Profile
- Defined in:
- lib/minecraft_auth.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#selected ⇒ Object
readonly
Returns the value of attribute selected.
Instance Method Summary collapse
-
#initialize(name, id, selected) ⇒ Profile
constructor
A new instance of Profile.
Constructor Details
#initialize(name, id, selected) ⇒ Profile
Returns a new instance of Profile.
70 71 72 73 74 |
# File 'lib/minecraft_auth.rb', line 70 def initialize(name, id, selected) @id = id @name = name @selected = selected end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
67 68 69 |
# File 'lib/minecraft_auth.rb', line 67 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/minecraft_auth.rb', line 66 def name @name end |
#selected ⇒ Object (readonly)
Returns the value of attribute selected.
68 69 70 |
# File 'lib/minecraft_auth.rb', line 68 def selected @selected end |