clash_of_clans_api 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clash_of_clans_api/client.rb +9 -0
- data/lib/clash_of_clans_api/models/clan_war_league_clan.rb +15 -0
- data/lib/clash_of_clans_api/models/clan_war_league_clan_member.rb +11 -0
- data/lib/clash_of_clans_api/models/clan_war_league_group.rb +14 -0
- data/lib/clash_of_clans_api/models/clan_war_league_round.rb +9 -0
- data/lib/clash_of_clans_api/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad57278f4c548b496dc331ed301684b8f86814c3cda412411fc93aa6de1b8fb
|
4
|
+
data.tar.gz: 35f2d2e5fbe8a58702bfc9ac07bbb708812162321aa2bdc9c004a450358626aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41e9cd2fee91bda4f81f8bf7459a78b24167357d5350c6d3ec72de25a8a33caccef9a39c3185da7a9e301bf96295283937c42f05fa8fa2f4866fbcd58c69b0c4
|
7
|
+
data.tar.gz: 4bc9e643ba24e1a720a51b7a8fe724155f3048f1803b16971cb002dd5f9e3d49925967da9c20d31fb057cfdd7eae6feb35bc163c6d59407ff8eab6572fbc339c
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative 'api'
|
2
2
|
require_relative 'models/paginated_response'
|
3
3
|
require_relative 'models/clan'
|
4
|
+
require_relative 'models/clan_war_league_group'
|
4
5
|
require_relative 'models/player'
|
5
6
|
require_relative 'models/league'
|
6
7
|
require_relative 'models/war'
|
@@ -17,6 +18,14 @@ module ClashOfClansApi
|
|
17
18
|
api.perform_request(:get, 'test').code == '404'
|
18
19
|
end
|
19
20
|
|
21
|
+
def clan_currentwar_leaguegroup(clan_tag)
|
22
|
+
Models::ClanWarLeagueGroup.new(api.clan_currentwar_leaguegroup(clan_tag), self)
|
23
|
+
end
|
24
|
+
|
25
|
+
def clanwarleagues_war(war_tag)
|
26
|
+
Models::War.new(api.clanwarleagues_war(war_tag), self)
|
27
|
+
end
|
28
|
+
|
20
29
|
def clan_currentwar(clan_tag)
|
21
30
|
Models::War.new(api.clan_currentwar(clan_tag), self)
|
22
31
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
require_relative 'clan_war_league_clan_member'
|
3
|
+
require_relative 'icon_set'
|
4
|
+
|
5
|
+
module ClashOfClansApi
|
6
|
+
module Models
|
7
|
+
class ClanWarLeagueClan < Base
|
8
|
+
property :tag, 'tag', required: true
|
9
|
+
property :name, 'name', required: true
|
10
|
+
property :clan_level, 'clanLevel', required: true
|
11
|
+
property :badge_urls, 'badgeUrls', required: true, type: IconSet
|
12
|
+
property :members, 'members', required: true, type: ClanWarLeagueClanMember
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
|
3
|
+
module ClashOfClansApi
|
4
|
+
module Models
|
5
|
+
class ClanWarLeagueClanMember < Base
|
6
|
+
property :tag, 'tag', required: true
|
7
|
+
property :name, 'name', required: true
|
8
|
+
property :townhall_level, 'townhallLevel', required: true
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
require_relative 'clan_war_league_clan'
|
3
|
+
require_relative 'clan_war_league_round'
|
4
|
+
|
5
|
+
module ClashOfClansApi
|
6
|
+
module Models
|
7
|
+
class ClanWarLeagueGroup < Base
|
8
|
+
property :state, 'state', required: true
|
9
|
+
property :season, 'season', required: true
|
10
|
+
property :clans, 'clans', required: true, type: ClanWarLeagueClan
|
11
|
+
property :rounds, 'rounds', required: true, type: ClanWarLeagueRound
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clash_of_clans_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- expeehaa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api_frame
|
@@ -44,6 +44,10 @@ files:
|
|
44
44
|
- lib/clash_of_clans_api/models/clan_capital.rb
|
45
45
|
- lib/clash_of_clans_api/models/clan_capital_district.rb
|
46
46
|
- lib/clash_of_clans_api/models/clan_location.rb
|
47
|
+
- lib/clash_of_clans_api/models/clan_war_league_clan.rb
|
48
|
+
- lib/clash_of_clans_api/models/clan_war_league_clan_member.rb
|
49
|
+
- lib/clash_of_clans_api/models/clan_war_league_group.rb
|
50
|
+
- lib/clash_of_clans_api/models/clan_war_league_round.rb
|
47
51
|
- lib/clash_of_clans_api/models/hero.rb
|
48
52
|
- lib/clash_of_clans_api/models/hero_equipment.rb
|
49
53
|
- lib/clash_of_clans_api/models/icon_set.rb
|
@@ -91,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
95
|
- !ruby/object:Gem::Version
|
92
96
|
version: '0'
|
93
97
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.5.3
|
95
99
|
signing_key:
|
96
100
|
specification_version: 4
|
97
101
|
summary: Client library for interacting with the ClashOfClans API.
|