Class: Credly::Api::MemberBadges

Inherits:
Base
  • Object
show all
Defined in:
lib/credly/api/evidence.rb,
lib/credly/api/member_badges.rb

Defined Under Namespace

Classes: Evidence

Instance Attribute Summary

Attributes inherited from Base

#id, #response

Instance Method Summary collapse

Methods inherited from Base

#after_request, #before_request, #build_object, #delete, #get, #initialize, #patch, #post, #put, #versioned_path

Methods included from Requierable

#require_at_least_one_file, #require_present

Constructor Details

This class inherits a constructor from Credly::Api::Base

Instance Method Details

#create(options = {}) ⇒ Object



5
6
7
# File 'lib/credly/api/member_badges.rb', line 5

def create(options = {})
  post('member_badges', options)
end

#evidenceObject



13
14
15
# File 'lib/credly/api/member_badges.rb', line 13

def evidence
  Evidence.new(:client => @client, :member_badge_id => self.id)
end

#find(id, options = {}) ⇒ Object



9
10
11
# File 'lib/credly/api/member_badges.rb', line 9

def find(id, options = {})
  get("member_badges/#{id}", options)
end