Class: Credly::Api::MemberBadges
- 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
Instance Method Summary collapse
Methods inherited from Base
#before_request, #build_object, #delete, #get, #initialize, #patch, #post, #put
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( = {}) post('member_badges', ) end |
#evidence ⇒ Object
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, = {}) get("member_badges/#{id}", ) end |