class Battlenet::WOW::Pet

Public Class Methods

new(options={}) click to toggle source
Calls superclass method Battlenet::APIResponse::new
# File lib/battlenet/modules/wow/pet.rb, line 5
def initialize(options={})
  @endpoint       = "/pet"
  super(options)
end

Public Instance Methods

ability(id, options = {}) click to toggle source
# File lib/battlenet/modules/wow/pet.rb, line 14
def ability(id, options = {})
  get_data("#{@endpoint}/ability/#{id}", options)
end
master_list(options = {}) click to toggle source
# File lib/battlenet/modules/wow/pet.rb, line 10
def master_list(options = {})
  get_data(@endpoint, options)
end
species(id, options = {}) click to toggle source
# File lib/battlenet/modules/wow/pet.rb, line 18
def species(id, options = {})
  get_data("#{@endpoint}/species/#{id}", options)
end
stats(species_id, options = {}) click to toggle source
# File lib/battlenet/modules/wow/pet.rb, line 22
def stats(species_id, options = {})
  get_data("#{@endpoint}/stats/#{species_id}", options)
end