Class: Battlenet::WOW::Guild
- Inherits:
-
APIResponse
- Object
- APIResponse
- Battlenet::WOW::Guild
- Defined in:
- lib/battlenet/modules/wow/guild.rb
Instance Attribute Summary
Attributes inherited from APIResponse
Instance Method Summary collapse
- #achievements ⇒ Object
- #challenge ⇒ Object
-
#initialize(options = {}) ⇒ Guild
constructor
A new instance of Guild.
- #members ⇒ Object
- #news ⇒ Object
- #profile ⇒ Object
Methods inherited from APIResponse
Constructor Details
#initialize(options = {}) ⇒ Guild
Returns a new instance of Guild.
5 6 7 8 9 10 11 12 |
# File 'lib/battlenet/modules/wow/guild.rb', line 5 def initialize(={}) @realm = .delete(:realm) @guild_name = .delete(:guild_name) @endpoint = "/guild/#{@realm}/#{@guild_name}" super() end |
Instance Method Details
#achievements ⇒ Object
22 23 24 |
# File 'lib/battlenet/modules/wow/guild.rb', line 22 def achievements get_data(@endpoint, {:fields => 'achievements'}) end |
#challenge ⇒ Object
30 31 32 |
# File 'lib/battlenet/modules/wow/guild.rb', line 30 def challenge get_data(@endpoint, {:fields => 'challenge'}) end |
#members ⇒ Object
18 19 20 |
# File 'lib/battlenet/modules/wow/guild.rb', line 18 def members get_data(@endpoint, {:fields => 'members'}) end |
#news ⇒ Object
26 27 28 |
# File 'lib/battlenet/modules/wow/guild.rb', line 26 def news get_data(@endpoint, {:fields => 'news'}) end |
#profile ⇒ Object
14 15 16 |
# File 'lib/battlenet/modules/wow/guild.rb', line 14 def profile get_data(@endpoint, {}) end |