Sha256: 52228a352ce54dd47b3ac56760191de7cccb3a747bcac1b70733982bfbfe290b

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

module Credly
  class Api
    class Members < Base

      class Badges < Base
        def all(member_id, options = Hash.new)
          get("members/#{member_id}/badges", options)
        end

        def given(member_id, options = Hash.new)
          get("members/#{member_id}/badges/given", options)
        end
      end

      def all(options = Hash.new)
        get("members", options)
      end

      def find(id, options = Hash.new)
        get("members/#{id}", options)
      end

      def badges
        Badges.new(:client => @client)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
credly-0.0.1 lib/credly/api/member.rb