Sha256: 2786acc52b9d11e97f733bd704a3561fd78f20349252e1f0a3bacc9ffd46d3ee

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Users

      def list_users(account, params={})
        get("/api/v1/accounts/#{account.to_s}/users", params)
      end

      def user_avatars(user, params={})
        get("/api/v1/users/#{user.to_s}/avatars", params)
      end

      def add_user(account, params={})
        post("/api/v1/accounts/#{account.to_s}/users", params)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bearcat-0.9.5 lib/bearcat/client/users.rb
bearcat-0.9.4 lib/bearcat/client/users.rb
bearcat-0.9.3 lib/bearcat/client/users.rb