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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6da1c60e116e338396abea0df004517db1b7e0a3
4
- data.tar.gz: f900c1b8293a45cf8fb538473e5a9198a34531c1
3
+ metadata.gz: 2074ad0838fc1027122cdc86aec5df1645bb4f6e
4
+ data.tar.gz: 05c0d054509dac9d7c00de5102e1fa909dc4b120
5
5
  SHA512:
6
- metadata.gz: 78c0244721234e024466186fd9a1fa081fad02796e356e43ffd1878ac34baaefecff82e55b0c48ab3944064b12dfa2a2d46b0a1e8f90292833d0524665b164b2
7
- data.tar.gz: 56a3cca13169315261a0b89f0228c6d123e025b701fd342c3c03abe01b065aa7482863111292ce9e2567e355eb674f870179906f51c1637857ac8aa6da01c2a6
6
+ metadata.gz: 015fec00a089e84833c1858c14916fa0006ccbfadc9c02b039943300fbed148097cbedf58bdd7489f73b8aa21a8900c78ef9257c6984b65d418a40fcb02f6477
7
+ data.tar.gz: 1967f00337c596b5ddcdaf6cd63a2125bc3edcdddc477facebee5b80fc5ac83f86c1cd18f0236f175e59be66927fe3ce213073cdd199cb4e69aff01ced819c10
@@ -8,13 +8,16 @@ class Wowapi
8
8
 
9
9
  # GuildClass - represents the Guild resource
10
10
  class GuildClass < Wowapi::ResponseData
11
- def initialize(data={})
12
- super
13
- if @table
14
- @table[:members].map!{ |player_hash|
15
- Wowapi::Modules::Character::CharacterClass.new(player_hash)
16
- } if @table[:members]
17
- end
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
 
@@ -1,4 +1,4 @@
1
1
  class Wowapi
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wowapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Matusz