Class: ChessApi::TitledPlayer
- Defined in:
- lib/chess_api/objects/titled_player.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ TitledPlayer
constructor
A new instance of TitledPlayer.
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