lib/turntabler/client.rb
def avatars
      data = api('user.available_avatars')
      avatars = []
      data['avatars'].each do |avatar_group|
        avatar_group['avatarids'].each do |avatar_id|
          avatars << Avatar.new(self, :_id => avatar_id, :min => avatar_group['min'], :acl => avatar_group['acl'])
        end
      end
      avatars
    end
def avatars
      data = api('user.available_avatars')
      avatars = []
      data['avatars'].each do |avatar_group|
        avatar_group['avatarids'].each do |avatar_id|
          avatars << Avatar.new(self, :_id => avatar_id, :min => avatar_group['min'], :acl => avatar_group['acl'])
        end
      end
      avatars
    end
def avatars data = api ( 'user.available_avatars' ) avatars = [ ] data [ 'avatars' ] . each do | avatar_group | avatar_group [ 'avatarids' ] . each do | avatar_id | avatars << Avatar . new ( self , :_id => avatar_id , :min => avatar_group [ 'min' ] , :acl => avatar_group [ 'acl' ] ) end end avatars end
Get all avatars availble on Turntable.

 @return [Array<Turntabler::Avatar>]
 @raise [Turntabler::Error] if the command fails
 @example
   client.avatars    # => [#<Turntabler::Avatar ...>, ...]
Get all avatars availble on Turntable .