wowapi 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wowapi/modules/guild.rb +10 -7
- data/lib/wowapi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2074ad0838fc1027122cdc86aec5df1645bb4f6e
|
|
4
|
+
data.tar.gz: 05c0d054509dac9d7c00de5102e1fa909dc4b120
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 015fec00a089e84833c1858c14916fa0006ccbfadc9c02b039943300fbed148097cbedf58bdd7489f73b8aa21a8900c78ef9257c6984b65d418a40fcb02f6477
|
|
7
|
+
data.tar.gz: 1967f00337c596b5ddcdaf6cd63a2125bc3edcdddc477facebee5b80fc5ac83f86c1cd18f0236f175e59be66927fe3ce213073cdd199cb4e69aff01ced819c10
|
data/lib/wowapi/modules/guild.rb
CHANGED
|
@@ -8,13 +8,16 @@ class Wowapi
|
|
|
8
8
|
|
|
9
9
|
# GuildClass - represents the Guild resource
|
|
10
10
|
class GuildClass < Wowapi::ResponseData
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
|
|
12
|
+
# This _MIGHT_ require refactorization
|
|
13
|
+
# tested with 588 members with no hickups,
|
|
14
|
+
# but potentially unoptimal
|
|
15
|
+
# (perhaps we should store it in memory
|
|
16
|
+
# as instance variable?)
|
|
17
|
+
def members
|
|
18
|
+
@table[:members].map!{ |player_hash|
|
|
19
|
+
Wowapi::Modules::Character::CharacterClass.new(player_hash)
|
|
20
|
+
} if @table[:members]
|
|
18
21
|
end
|
|
19
22
|
end
|
|
20
23
|
|
data/lib/wowapi/version.rb
CHANGED