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.



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

#idObject (readonly)

Returns the value of attribute id.



67
68
69
# File 'lib/minecraft_auth.rb', line 67

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



66
67
68
# File 'lib/minecraft_auth.rb', line 66

def name
  @name
end

#selectedObject (readonly)

Returns the value of attribute selected.



68
69
70
# File 'lib/minecraft_auth.rb', line 68

def selected
  @selected
end