Class: MinecraftResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/mc-accountr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, legacy) ⇒ MinecraftResponse

Returns a new instance of MinecraftResponse.



10
11
12
13
14
# File 'lib/mc-accountr.rb', line 10

def initialize(id, name, legacy)
  self.id = id
  self.name = name
  self.legacy = legacy
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/mc-accountr.rb', line 6

def id
  @id
end

#legacyObject

Returns the value of attribute legacy.



8
9
10
# File 'lib/mc-accountr.rb', line 8

def legacy
  @legacy
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/mc-accountr.rb', line 7

def name
  @name
end

Instance Method Details

#legacy?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/mc-accountr.rb', line 16

def legacy?
  self.legacy
end