leocabeza / clash-api

Ruby wrapper for the Clash of Clans API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change api responses to Ruby objects

leocabeza opened this issue · comments

For instance:

clans = client.find_clan(name: 'onehive', minMembers: 25)
clan = clans.first
clan.class # => Clashinator::Clan
clan.tag # => '#2U2CYPQ8'
clan.info # calls get_clan_info
clan.members # calls list_clan_members

locations = client.locations
loc = locations.first
loc.id # => 32000254
loc.info
loc.ranking

This was already addressed in v1.0 tag