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.
58 59 60 61 62 |
# File 'lib/minecraft_auth.rb', line 58 def initialize(name, id, selected) @id = id @name = name @selected = selected end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
55 56 57 |
# File 'lib/minecraft_auth.rb', line 55 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
54 55 56 |
# File 'lib/minecraft_auth.rb', line 54 def name @name end |
#selected ⇒ Object (readonly)
Returns the value of attribute selected.
56 57 58 |
# File 'lib/minecraft_auth.rb', line 56 def selected @selected end |