Class: Battlenet::SC2::Ladder
- Inherits:
-
APIResponse
- Object
- APIResponse
- Battlenet::SC2::Ladder
- Defined in:
- lib/battlenet/modules/sc2/ladder.rb
Instance Attribute Summary
Attributes inherited from APIResponse
Instance Method Summary collapse
- #details(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Ladder
constructor
A new instance of Ladder.
Methods inherited from APIResponse
Constructor Details
#initialize(options = {}) ⇒ Ladder
Returns a new instance of Ladder.
6 7 8 9 10 11 |
# File 'lib/battlenet/modules/sc2/ladder.rb', line 6 def initialize(={}) @ladder_id = .delete(:ladder_id) @endpoint = "/ladder/#{@ladder_id}" super() end |
Instance Method Details
#details(options = {}) ⇒ Object
13 14 15 |
# File 'lib/battlenet/modules/sc2/ladder.rb', line 13 def details( = {}) get_data(@endpoint, ) end |