Class: MinecraftAuth::Profile

Inherits:
Object
  • Object
show all
Defined in:
lib/minecraft_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



55
56
57
# File 'lib/minecraft_auth.rb', line 55

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



54
55
56
# File 'lib/minecraft_auth.rb', line 54

def name
  @name
end

#selectedObject (readonly)

Returns the value of attribute selected.



56
57
58
# File 'lib/minecraft_auth.rb', line 56

def selected
  @selected
end