Class: Battlenet::SC2::Ladder

Inherits:
APIResponse show all
Defined in:
lib/battlenet/modules/sc2/ladder.rb

Instance Attribute Summary

Attributes inherited from APIResponse

#data

Instance Method Summary collapse

Methods inherited from APIResponse

#get_data

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(options={})
  @ladder_id      = options.delete(:ladder_id)
  @endpoint       = "/ladder/#{@ladder_id}"

  super(options)
end

Instance Method Details

#details(options = {}) ⇒ Object



13
14
15
# File 'lib/battlenet/modules/sc2/ladder.rb', line 13

def details(options = {})
  get_data(@endpoint, options)
end