Class: MinecraftResponse
- Inherits:
-
Object
- Object
- MinecraftResponse
- Defined in:
- lib/mc-accountr.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#legacy ⇒ Object
Returns the value of attribute legacy.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name, legacy) ⇒ MinecraftResponse
constructor
A new instance of MinecraftResponse.
- #legacy? ⇒ Boolean
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
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/mc-accountr.rb', line 6 def id @id end |
#legacy ⇒ Object
Returns the value of attribute legacy.
8 9 10 |
# File 'lib/mc-accountr.rb', line 8 def legacy @legacy end |
#name ⇒ Object
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
16 17 18 |
# File 'lib/mc-accountr.rb', line 16 def legacy? self.legacy end |