Class: Credly::Api::Badges
- Inherits:
-
Base
- Object
- Base
- Credly::Api::Badges
show all
- Defined in:
- lib/credly/api/badges.rb,
lib/credly/api/categories.rb
Defined Under Namespace
Classes: Categories
Instance Attribute Summary
Attributes inherited from Base
#id, #response
Instance Method Summary
collapse
Methods inherited from Base
#before_request, #build_object, #delete, #get, #initialize, #patch, #post, #put
#require_at_least_one_file, #require_present
Instance Method Details
#all(options = {}) ⇒ Object
5
6
7
|
# File 'lib/credly/api/badges.rb', line 5
def all(options = {})
get("badges", options)
end
|
#categories ⇒ Object
21
22
23
|
# File 'lib/credly/api/badges.rb', line 21
def categories
Categories.new(:client => @client)
end
|
#create(options = {}) ⇒ Object
9
10
11
|
# File 'lib/credly/api/badges.rb', line 9
def create(options = {})
post('badges', options)
end
|
#find(id, options = {}) ⇒ Object
13
14
15
|
# File 'lib/credly/api/badges.rb', line 13
def find(id, options = {})
get("badges/#{id}", options)
end
|
#update(id, options = {}) ⇒ Object
17
18
19
|
# File 'lib/credly/api/badges.rb', line 17
def update(id, options = {})
post("badges/#{id}", options)
end
|