class Battlenet::SC2::Profile
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
Battlenet::APIResponse::new
# File lib/battlenet/modules/sc2/profile.rb, line 6 def initialize(options={}) @profile_id = options.delete(:id) @region = options.delete(:region) @name = options.delete(:name) @endpoint = "/profile/#{@profile_id}/#{@region}/#{@name}" super(options) end
Public Instance Methods
details(options = {})
click to toggle source
# File lib/battlenet/modules/sc2/profile.rb, line 15 def details(options = {}) get_data(@endpoint, options) end
ladders(options = {})
click to toggle source
# File lib/battlenet/modules/sc2/profile.rb, line 19 def ladders(options = {}) get_data("#{@endpoint}/ladders", options) end
match_history(options = {})
click to toggle source
# File lib/battlenet/modules/sc2/profile.rb, line 23 def match_history(options = {}) get_data("#{@endpoint}/matches", options) end