Module: Honsolo::Clan
- Defined in:
- lib/honsolo/clan.rb
Class Method Summary collapse
Class Method Details
.find(clan_id) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/honsolo/clan.rb', line 4 def find(clan_id) data = Honsolo.post("f" => "clan_list", "clan_id" => clan_id) raise ClanNotFound, clan_id if data["clan_roster"]["error"] OpenStruct.new(:clan_roster => data["clan_roster"].collect { |id, member| Honsolo.to_ostruct(member) }) end |