Sha256: 50fef76f9616215d0025fe9ab611e2f81a70c6e56e57a509b6f7f9126ff160e3

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

module Credly
  class Api
    class Badges < Base

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

      def create(options = Hash.new)
        post('badges', options)
      end

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

      def update(id, options = Hash.new)
        post("badges/#{id}", options)
      end

      def categories
        Categories.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/badges.rb