Class: ChessApi::TitledPlayer

Inherits:
Object
  • Object
show all
Defined in:
lib/chess_api/objects/titled_player.rb

Instance Method Summary collapse

Methods inherited from Object

#method_missing, #respond_to_missing?

Constructor Details

#initialize(name) ⇒ TitledPlayer

Returns a new instance of TitledPlayer.



3
4
5
# File 'lib/chess_api/objects/titled_player.rb', line 3

def initialize(name)
  super({username: name})
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChessApi::Object