class Battlenet::WOW::Guild
Public Class Methods
new(options={})
click to toggle source
Calls superclass method
Battlenet::APIResponse::new
# File lib/battlenet/modules/wow/guild.rb, line 5 def initialize(options={}) @realm = options.delete(:realm) @guild_name = options.delete(:guild_name) @endpoint = "/guild/#{@realm}/#{@guild_name}" super(options) end
Public Instance Methods
achievements(options = {})
click to toggle source
# File lib/battlenet/modules/wow/guild.rb, line 21 def achievements(options = {}) get_data(@endpoint, options.merge({fields: 'achievements'})) end
challenge(options = {})
click to toggle source
# File lib/battlenet/modules/wow/guild.rb, line 29 def challenge(options = {}) get_data(@endpoint, options.merge({fields: 'challenge'})) end
members(options = {})
click to toggle source
# File lib/battlenet/modules/wow/guild.rb, line 17 def members(options = {}) get_data(@endpoint, options.merge({fields: 'members'})) end
news(options = {})
click to toggle source
# File lib/battlenet/modules/wow/guild.rb, line 25 def news(options = {}) get_data(@endpoint, options.merge({fields: 'news'})) end
profile(options = {})
click to toggle source
# File lib/battlenet/modules/wow/guild.rb, line 13 def profile(options = {}) get_data(@endpoint, options) end