class Battlenet::WOWClient
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
Battlenet::Client::new
# File lib/battlenet/api/wow_client.rb, line 25 def initialize(options = {}) client_settings = { :endpoint => '/wow' } client_settings = client_settings.merge(options) super(client_settings) end
Public Instance Methods
achievement(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 56 def achievement(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Achievement) end
auction(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 60 def auction(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Auction) end
boss(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 92 def boss(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Boss) end
challenge(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 40 def challenge(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Challenge) end
character(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 32 def character(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Character) end
data(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 84 def data(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Data) end
guild(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 44 def guild(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Guild) end
item(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 48 def item(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Item) end
item_set(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 52 def item_set(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::ItemSet) end
mount(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 36 def mount(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Mount) end
pet(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 88 def pet(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Pet) end
pvp_leaderboard(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 64 def pvp_leaderboard(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::PVPLeaderboard) end
quest(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 68 def quest(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Quest) end
realm(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 72 def realm(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Realm) end
recipe(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 76 def recipe(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Recipe) end
spell(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 80 def spell(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Spell) end
zone(options = {})
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 96 def zone(options = {}) merge_options_and_return_obj(options, Battlenet::WOW::Zone) end
Private Instance Methods
merge_options_and_return_obj(options, obj)
click to toggle source
# File lib/battlenet/api/wow_client.rb, line 102 def merge_options_and_return_obj(options, obj) opts = options.merge({:client => self}) obj.new(opts) end