absorb_api 0.2.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +866 -0
  3. data/.ruby-version +1 -0
  4. data/CODE_OF_CONDUCT.md +46 -0
  5. data/Gemfile +3 -10
  6. data/README.md +0 -2
  7. data/Rakefile +3 -1
  8. data/absorb_api.gemspec +30 -16
  9. data/bin/console +11 -5
  10. data/doc/AbsorbApi.html +33 -64
  11. data/doc/AbsorbApi/Api.html +358 -0
  12. data/doc/AbsorbApi/Authorize.html +263 -0
  13. data/doc/AbsorbApi/Category.html +3 -2
  14. data/doc/AbsorbApi/Certificate.html +3 -2
  15. data/doc/AbsorbApi/Chapter.html +3 -2
  16. data/doc/AbsorbApi/Collection.html +3 -2
  17. data/doc/AbsorbApi/Configuration.html +3 -28
  18. data/doc/AbsorbApi/Course.html +3 -71
  19. data/doc/AbsorbApi/CourseEnrollment.html +6 -58
  20. data/doc/AbsorbApi/Create.html +164 -0
  21. data/doc/AbsorbApi/Curriculum.html +3 -2
  22. data/doc/AbsorbApi/Department.html +4 -14
  23. data/doc/AbsorbApi/Lesson.html +3 -2
  24. data/doc/AbsorbApi/LessonEnrollment.html +3 -2
  25. data/doc/AbsorbApi/Prerequisite.html +3 -2
  26. data/doc/AbsorbApi/Record.html +360 -0
  27. data/doc/AbsorbApi/Relations.html +2 -196
  28. data/doc/AbsorbApi/Relations/ClassMethods.html +197 -0
  29. data/doc/AbsorbApi/Resource.html +3 -2
  30. data/doc/AbsorbApi/ResourceNotFound.html +2 -1
  31. data/doc/AbsorbApi/Role.html +3 -2
  32. data/doc/AbsorbApi/RouteNotFound.html +2 -1
  33. data/doc/AbsorbApi/SessionSchedule.html +3 -2
  34. data/doc/AbsorbApi/Tag.html +4 -14
  35. data/doc/AbsorbApi/User.html +85 -35
  36. data/doc/AbsorbApi/ValidationError.html +2 -1
  37. data/doc/AbsorbApi/Where.html +162 -0
  38. data/doc/CODE_OF_CONDUCT_md.html +196 -0
  39. data/doc/Gemfile.html +8 -8
  40. data/doc/Gemfile_lock.html +57 -29
  41. data/doc/Icon/r.html +96 -0
  42. data/doc/LICENSE_txt.html +6 -1
  43. data/doc/Object.html +159 -0
  44. data/doc/README_md.html +6 -3
  45. data/doc/Rakefile.html +7 -2
  46. data/doc/absorb_api_gemspec.html +24 -7
  47. data/doc/bin/setup.html +6 -1
  48. data/doc/created.rid +34 -30
  49. data/doc/css/fonts.css +6 -6
  50. data/doc/index.html +19 -4
  51. data/doc/js/darkfish.js +7 -7
  52. data/doc/js/search_index.js +1 -1
  53. data/doc/js/search_index.js.gz +0 -0
  54. data/doc/js/searcher.js +1 -0
  55. data/doc/js/searcher.js.gz +0 -0
  56. data/doc/table_of_contents.html +118 -31
  57. data/lib/absorb_api.rb +43 -29
  58. data/lib/absorb_api/api.rb +69 -5
  59. data/lib/absorb_api/authorize.rb +37 -7
  60. data/lib/absorb_api/category.rb +3 -1
  61. data/lib/absorb_api/certificate.rb +5 -2
  62. data/lib/absorb_api/chapter.rb +3 -1
  63. data/lib/absorb_api/collection.rb +2 -19
  64. data/lib/absorb_api/configuration.rb +14 -12
  65. data/lib/absorb_api/course.rb +11 -25
  66. data/lib/absorb_api/course_enrollment.rb +13 -26
  67. data/lib/absorb_api/create.rb +19 -0
  68. data/lib/absorb_api/curriculum.rb +11 -2
  69. data/lib/absorb_api/department.rb +10 -4
  70. data/lib/absorb_api/lesson.rb +5 -2
  71. data/lib/absorb_api/lesson_enrollment.rb +8 -2
  72. data/lib/absorb_api/prerequisite.rb +5 -2
  73. data/lib/absorb_api/record.rb +58 -0
  74. data/lib/absorb_api/relations.rb +42 -40
  75. data/lib/absorb_api/resource.rb +3 -1
  76. data/lib/absorb_api/role.rb +3 -1
  77. data/lib/absorb_api/session_schedule.rb +6 -2
  78. data/lib/absorb_api/tag.rb +6 -3
  79. data/lib/absorb_api/user.rb +13 -29
  80. data/lib/absorb_api/version.rb +3 -1
  81. data/lib/absorb_api/where.rb +17 -0
  82. metadata +133 -8
  83. data/lib/absorb_api/base.rb +0 -12
  84. data/lib/absorb_api/orm.rb +0 -36
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
11
12
  </script>
12
13
 
13
14
  <script src="./js/jquery.js"></script>
@@ -57,10 +58,14 @@
57
58
 
58
59
  <ul class="link-list">
59
60
 
61
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
62
+
60
63
  <li><a href="./Gemfile.html">Gemfile</a>
61
64
 
62
65
  <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
63
66
 
67
+ <li><a href="./Icon
68
+
64
69
  <li><a href="./LICENSE_txt.html">LICENSE</a>
65
70
 
66
71
  <li><a href="./README_md.html">README</a>
@@ -81,7 +86,9 @@
81
86
 
82
87
  <li><a href="./AbsorbApi.html">AbsorbApi</a>
83
88
 
84
- <li><a href="./AbsorbApi/Base.html">AbsorbApi::Base</a>
89
+ <li><a href="./AbsorbApi/Api.html">AbsorbApi::Api</a>
90
+
91
+ <li><a href="./AbsorbApi/Authorize.html">AbsorbApi::Authorize</a>
85
92
 
86
93
  <li><a href="./AbsorbApi/Category.html">AbsorbApi::Category</a>
87
94
 
@@ -97,6 +104,8 @@
97
104
 
98
105
  <li><a href="./AbsorbApi/CourseEnrollment.html">AbsorbApi::CourseEnrollment</a>
99
106
 
107
+ <li><a href="./AbsorbApi/Create.html">AbsorbApi::Create</a>
108
+
100
109
  <li><a href="./AbsorbApi/Curriculum.html">AbsorbApi::Curriculum</a>
101
110
 
102
111
  <li><a href="./AbsorbApi/Department.html">AbsorbApi::Department</a>
@@ -105,12 +114,14 @@
105
114
 
106
115
  <li><a href="./AbsorbApi/LessonEnrollment.html">AbsorbApi::LessonEnrollment</a>
107
116
 
108
- <li><a href="./AbsorbApi/Orm.html">AbsorbApi::Orm</a>
109
-
110
117
  <li><a href="./AbsorbApi/Prerequisite.html">AbsorbApi::Prerequisite</a>
111
118
 
119
+ <li><a href="./AbsorbApi/Record.html">AbsorbApi::Record</a>
120
+
112
121
  <li><a href="./AbsorbApi/Relations.html">AbsorbApi::Relations</a>
113
122
 
123
+ <li><a href="./AbsorbApi/Relations/ClassMethods.html">AbsorbApi::Relations::ClassMethods</a>
124
+
114
125
  <li><a href="./AbsorbApi/Resource.html">AbsorbApi::Resource</a>
115
126
 
116
127
  <li><a href="./AbsorbApi/ResourceNotFound.html">AbsorbApi::ResourceNotFound</a>
@@ -127,6 +138,10 @@
127
138
 
128
139
  <li><a href="./AbsorbApi/ValidationError.html">AbsorbApi::ValidationError</a>
129
140
 
141
+ <li><a href="./AbsorbApi/Where.html">AbsorbApi::Where</a>
142
+
143
+ <li><a href="./Object.html">Object</a>
144
+
130
145
  </ul>
131
146
  </div>
132
147
 
@@ -141,7 +156,7 @@
141
156
 
142
157
  <footer id="validator-badges" role="contentinfo">
143
158
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
144
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
159
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
145
160
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
146
161
  </footer>
147
162
 
@@ -59,7 +59,7 @@ function hookSearch() {
59
59
  var html = '';
60
60
 
61
61
  // TODO add relative path to <script> per-page
62
- html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
62
+ html += '<p class="search-match"><a href="' + index_rel_prefix + result.path + '">' + this.hlt(result.title);
63
63
  if (result.params)
64
64
  html += '<span class="params">' + result.params + '</span>';
65
65
  html += '</a>';
@@ -121,9 +121,9 @@ function highlightClickTarget( event ) {
121
121
  };
122
122
  };
123
123
 
124
- function loadAsync(path, success) {
124
+ function loadAsync(path, success, prefix) {
125
125
  $.ajax({
126
- url: rdoc_rel_prefix + path,
126
+ url: prefix + path,
127
127
  dataType: 'script',
128
128
  success: success,
129
129
  cache: true
@@ -154,8 +154,8 @@ $(document).ready( function() {
154
154
  });
155
155
  }
156
156
 
157
- loadAsync('js/navigation.js', search_success_function('navigation_loaded'));
158
- loadAsync('js/search.js', search_success_function('search_loaded'));
159
- loadAsync('js/search_index.js', search_success_function('search_index_loaded'));
160
- loadAsync('js/searcher.js', search_success_function('searcher_loaded'));
157
+ loadAsync('js/navigation.js', search_success_function('navigation_loaded'), rdoc_rel_prefix);
158
+ loadAsync('js/search.js', search_success_function('search_loaded'), rdoc_rel_prefix);
159
+ loadAsync('js/search_index.js', search_success_function('search_index_loaded'), index_rel_prefix);
160
+ loadAsync('js/searcher.js', search_success_function('searcher_loaded'), rdoc_rel_prefix);
161
161
  });
@@ -1 +1 @@
1
- var search_data = {"index":{"searchIndex":["absorbapi","base","category","certificate","chapter","collection","configuration","course","courseenrollment","curriculum","department","lesson","lessonenrollment","orm","prerequisite","relations","resource","resourcenotfound","role","routenotfound","sessionschedule","tag","user","validationerror","all()","api()","authorize()","configure()","courses_from_collection()","create()","enrollments_from_collection()","find()","has_many()","has_one()","lessons()","lessons_from_collection()","new()","new()","reset()","where()","gemfile","gemfile.lock","license","readme","rakefile","absorb_api.gemspec","setup"],"longSearchIndex":["absorbapi","absorbapi::base","absorbapi::category","absorbapi::certificate","absorbapi::chapter","absorbapi::collection","absorbapi::configuration","absorbapi::course","absorbapi::courseenrollment","absorbapi::curriculum","absorbapi::department","absorbapi::lesson","absorbapi::lessonenrollment","absorbapi::orm","absorbapi::prerequisite","absorbapi::relations","absorbapi::resource","absorbapi::resourcenotfound","absorbapi::role","absorbapi::routenotfound","absorbapi::sessionschedule","absorbapi::tag","absorbapi::user","absorbapi::validationerror","absorbapi::orm#all()","absorbapi::api()","absorbapi::authorize()","absorbapi::configure()","absorbapi::user::courses_from_collection()","absorbapi::relations#create()","absorbapi::course::enrollments_from_collection()","absorbapi::orm#find()","absorbapi::relations#has_many()","absorbapi::relations#has_one()","absorbapi::courseenrollment#lessons()","absorbapi::courseenrollment::lessons_from_collection()","absorbapi::base::new()","absorbapi::collection::new()","absorbapi::reset()","absorbapi::relations#where()","","","","","","",""],"info":[["AbsorbApi","","AbsorbApi.html","",""],["AbsorbApi::Base","","AbsorbApi/Base.html","",""],["AbsorbApi::Category","","AbsorbApi/Category.html","",""],["AbsorbApi::Certificate","","AbsorbApi/Certificate.html","",""],["AbsorbApi::Chapter","","AbsorbApi/Chapter.html","",""],["AbsorbApi::Collection","","AbsorbApi/Collection.html","",""],["AbsorbApi::Configuration","","AbsorbApi/Configuration.html","",""],["AbsorbApi::Course","","AbsorbApi/Course.html","",""],["AbsorbApi::CourseEnrollment","","AbsorbApi/CourseEnrollment.html","",""],["AbsorbApi::Curriculum","","AbsorbApi/Curriculum.html","",""],["AbsorbApi::Department","","AbsorbApi/Department.html","",""],["AbsorbApi::Lesson","","AbsorbApi/Lesson.html","",""],["AbsorbApi::LessonEnrollment","","AbsorbApi/LessonEnrollment.html","",""],["AbsorbApi::Orm","","AbsorbApi/Orm.html","",""],["AbsorbApi::Prerequisite","","AbsorbApi/Prerequisite.html","",""],["AbsorbApi::Relations","","AbsorbApi/Relations.html","",""],["AbsorbApi::Resource","","AbsorbApi/Resource.html","",""],["AbsorbApi::ResourceNotFound","","AbsorbApi/ResourceNotFound.html","",""],["AbsorbApi::Role","","AbsorbApi/Role.html","",""],["AbsorbApi::RouteNotFound","","AbsorbApi/RouteNotFound.html","",""],["AbsorbApi::SessionSchedule","","AbsorbApi/SessionSchedule.html","",""],["AbsorbApi::Tag","","AbsorbApi/Tag.html","",""],["AbsorbApi::User","","AbsorbApi/User.html","",""],["AbsorbApi::ValidationError","","AbsorbApi/ValidationError.html","",""],["all","AbsorbApi::Orm","AbsorbApi/Orm.html#method-i-all","()",""],["api","AbsorbApi","AbsorbApi.html#method-c-api","()",""],["authorize","AbsorbApi","AbsorbApi.html#method-c-authorize","()",""],["configure","AbsorbApi","AbsorbApi.html#method-c-configure","()",""],["courses_from_collection","AbsorbApi::User","AbsorbApi/User.html#method-c-courses_from_collection","(users)","<p>gets all associated courses given a collection of users all calls are\ncalled in parallel users are chunked …\n"],["create","AbsorbApi::Relations","AbsorbApi/Relations.html#method-i-create","(attributes = [], &block)",""],["enrollments_from_collection","AbsorbApi::Course","AbsorbApi/Course.html#method-c-enrollments_from_collection","(courses, **conditions)","<p>gets all associated enrollments given a collection of courses all calls are\ncalled in parallel\n"],["find","AbsorbApi::Orm","AbsorbApi/Orm.html#method-i-find","(id)",""],["has_many","AbsorbApi::Relations","AbsorbApi/Relations.html#method-i-has_many","(rel_name, klass = nil)",""],["has_one","AbsorbApi::Relations","AbsorbApi/Relations.html#method-i-has_one","(rel_name, klass = nil)",""],["lessons","AbsorbApi::CourseEnrollment","AbsorbApi/CourseEnrollment.html#method-i-lessons","(**conditions)",""],["lessons_from_collection","AbsorbApi::CourseEnrollment","AbsorbApi/CourseEnrollment.html#method-c-lessons_from_collection","(course_enrollments, **filters)","<p>gets all associated lessons given a collection of enrollments all calls are\ncalled in parallel enrollments …\n"],["new","AbsorbApi::Base","AbsorbApi/Base.html#method-c-new","(attributes = [], &block)",""],["new","AbsorbApi::Collection","AbsorbApi/Collection.html#method-c-new","(elements, metadata = {})",""],["reset","AbsorbApi","AbsorbApi.html#method-c-reset","()",""],["where","AbsorbApi::Relations","AbsorbApi/Relations.html#method-i-where","(**conditions)",""],["Gemfile","","Gemfile.html","","<p>source &#39;rubygems.org&#39;\n<p># Specify your gem&#39;s dependencies in absorb_api.gemspec gemspec\n<p>gem &#39;faraday&#39; …\n"],["Gemfile.lock","","Gemfile_lock.html","","<p>PATH\n\n<pre>remote: .\nspecs:\n absorb_api (0.1.6)</pre>\n<p>GEM\n"],["LICENSE","","LICENSE_txt.html","","<p>The MIT License (MIT)\n<p>Copyright © 2016 npezza93\n<p>Permission is hereby granted, free of charge, to any …\n"],["README","","README_md.html","","<p>Absorb LMS API Wrapper\n<p>“Absorb LMS is a powerful, flexible, and visually stunning software\nplatform …\n"],["Rakefile","","Rakefile.html","","<p>require “bundler/gem_tasks” task :default =&gt; :spec\n"],["absorb_api.gemspec","","absorb_api_gemspec.html","","<p>lib = File.expand_path(&#39;../lib&#39;, __FILE__) $LOAD_PATH.unshift(lib)\nunless $LOAD_PATH.include?(lib) …\n"],["setup","","bin/setup.html","","<p>#!/usr/bin/env bash set -euo pipefail IFS=$&#39;nt&#39; set -vx\n<p>bundle install\n<p># Do any other automated …\n"]]}}
1
+ var search_data = {"index":{"searchIndex":["absorbapi","api","authorize","category","certificate","chapter","collection","configuration","course","courseenrollment","create","curriculum","department","lesson","lessonenrollment","prerequisite","record","relations","classmethods","resource","resourcenotfound","role","routenotfound","sessionschedule","tag","user","validationerror","where","object","all()","can_create()","can_search()","configuration()","configure()","connection()","create()","delete()","expired?()","find()","get()","lessons()","new()","new()","new()","patch()","post()","put()","reload!()","reset()","token()","token()","update()","where()","with_many()","with_one()","with_relationships()","code_of_conduct","gemfile","gemfile.lock","icon","license","readme","rakefile","absorb_api.gemspec","setup"],"longSearchIndex":["absorbapi","absorbapi::api","absorbapi::authorize","absorbapi::category","absorbapi::certificate","absorbapi::chapter","absorbapi::collection","absorbapi::configuration","absorbapi::course","absorbapi::courseenrollment","absorbapi::create","absorbapi::curriculum","absorbapi::department","absorbapi::lesson","absorbapi::lessonenrollment","absorbapi::prerequisite","absorbapi::record","absorbapi::relations","absorbapi::relations::classmethods","absorbapi::resource","absorbapi::resourcenotfound","absorbapi::role","absorbapi::routenotfound","absorbapi::sessionschedule","absorbapi::tag","absorbapi::user","absorbapi::validationerror","absorbapi::where","object","absorbapi::record::all()","absorbapi::record::can_create()","absorbapi::record::can_search()","absorbapi::configuration()","absorbapi::configure()","absorbapi::api#connection()","absorbapi::create#create()","absorbapi::api#delete()","absorbapi::authorize#expired?()","absorbapi::record::find()","absorbapi::api#get()","absorbapi::courseenrollment#lessons()","absorbapi::authorize::new()","absorbapi::collection::new()","absorbapi::record::new()","absorbapi::api#patch()","absorbapi::api#post()","absorbapi::api#put()","object#reload!()","absorbapi::reset()","absorbapi::token()","absorbapi::authorize#token()","absorbapi::user#update()","absorbapi::where#where()","absorbapi::relations::classmethods#with_many()","absorbapi::relations::classmethods#with_one()","absorbapi::record::with_relationships()","","","","","","","","",""],"info":[["AbsorbApi","","AbsorbApi.html","",""],["AbsorbApi::Api","","AbsorbApi/Api.html","",""],["AbsorbApi::Authorize","","AbsorbApi/Authorize.html","",""],["AbsorbApi::Category","","AbsorbApi/Category.html","",""],["AbsorbApi::Certificate","","AbsorbApi/Certificate.html","",""],["AbsorbApi::Chapter","","AbsorbApi/Chapter.html","",""],["AbsorbApi::Collection","","AbsorbApi/Collection.html","",""],["AbsorbApi::Configuration","","AbsorbApi/Configuration.html","",""],["AbsorbApi::Course","","AbsorbApi/Course.html","",""],["AbsorbApi::CourseEnrollment","","AbsorbApi/CourseEnrollment.html","",""],["AbsorbApi::Create","","AbsorbApi/Create.html","",""],["AbsorbApi::Curriculum","","AbsorbApi/Curriculum.html","",""],["AbsorbApi::Department","","AbsorbApi/Department.html","",""],["AbsorbApi::Lesson","","AbsorbApi/Lesson.html","",""],["AbsorbApi::LessonEnrollment","","AbsorbApi/LessonEnrollment.html","",""],["AbsorbApi::Prerequisite","","AbsorbApi/Prerequisite.html","",""],["AbsorbApi::Record","","AbsorbApi/Record.html","",""],["AbsorbApi::Relations","","AbsorbApi/Relations.html","",""],["AbsorbApi::Relations::ClassMethods","","AbsorbApi/Relations/ClassMethods.html","",""],["AbsorbApi::Resource","","AbsorbApi/Resource.html","",""],["AbsorbApi::ResourceNotFound","","AbsorbApi/ResourceNotFound.html","",""],["AbsorbApi::Role","","AbsorbApi/Role.html","",""],["AbsorbApi::RouteNotFound","","AbsorbApi/RouteNotFound.html","",""],["AbsorbApi::SessionSchedule","","AbsorbApi/SessionSchedule.html","",""],["AbsorbApi::Tag","","AbsorbApi/Tag.html","",""],["AbsorbApi::User","","AbsorbApi/User.html","",""],["AbsorbApi::ValidationError","","AbsorbApi/ValidationError.html","",""],["AbsorbApi::Where","","AbsorbApi/Where.html","",""],["Object","","Object.html","",""],["all","AbsorbApi::Record","AbsorbApi/Record.html#method-c-all","()",""],["can_create","AbsorbApi::Record","AbsorbApi/Record.html#method-c-can_create","()",""],["can_search","AbsorbApi::Record","AbsorbApi/Record.html#method-c-can_search","()",""],["configuration","AbsorbApi","AbsorbApi.html#method-c-configuration","()",""],["configure","AbsorbApi","AbsorbApi.html#method-c-configure","()",""],["connection","AbsorbApi::Api","AbsorbApi/Api.html#method-i-connection","()",""],["create","AbsorbApi::Create","AbsorbApi/Create.html#method-i-create","(attributes = {})",""],["delete","AbsorbApi::Api","AbsorbApi/Api.html#method-i-delete","(path, params = {})",""],["expired?","AbsorbApi::Authorize","AbsorbApi/Authorize.html#method-i-expired-3F","()",""],["find","AbsorbApi::Record","AbsorbApi/Record.html#method-c-find","(id)",""],["get","AbsorbApi::Api","AbsorbApi/Api.html#method-i-get","(path, params = {})",""],["lessons","AbsorbApi::CourseEnrollment","AbsorbApi/CourseEnrollment.html#method-i-lessons","(**conditions)",""],["new","AbsorbApi::Authorize","AbsorbApi/Authorize.html#method-c-new","()",""],["new","AbsorbApi::Collection","AbsorbApi/Collection.html#method-c-new","(elements, metadata = {})",""],["new","AbsorbApi::Record","AbsorbApi/Record.html#method-c-new","(params = {})",""],["patch","AbsorbApi::Api","AbsorbApi/Api.html#method-i-patch","(path, params = {})",""],["post","AbsorbApi::Api","AbsorbApi/Api.html#method-i-post","(path, params = {})",""],["put","AbsorbApi::Api","AbsorbApi/Api.html#method-i-put","(path, params = {})",""],["reload!","Object","Object.html#method-i-reload-21","(print = true)",""],["reset","AbsorbApi","AbsorbApi.html#method-c-reset","()",""],["token","AbsorbApi","AbsorbApi.html#method-c-token","()",""],["token","AbsorbApi::Authorize","AbsorbApi/Authorize.html#method-i-token","()",""],["update","AbsorbApi::User","AbsorbApi/User.html#method-i-update","(attrs)",""],["where","AbsorbApi::Where","AbsorbApi/Where.html#method-i-where","(**conditions)",""],["with_many","AbsorbApi::Relations::ClassMethods","AbsorbApi/Relations/ClassMethods.html#method-i-with_many","(rel_name, klass = nil)",""],["with_one","AbsorbApi::Relations::ClassMethods","AbsorbApi/Relations/ClassMethods.html#method-i-with_one","(rel_name, klass = nil)",""],["with_relationships","AbsorbApi::Record","AbsorbApi/Record.html#method-c-with_relationships","()",""],["CODE_OF_CONDUCT","","CODE_OF_CONDUCT_md.html","","<p>Contributor Covenant Code of Conduct\n<p>Our Pledge\n<p>In the interest of fostering an open and welcoming environment, …\n"],["Gemfile","","Gemfile.html","","<p>source “rubygems.org”\n<p>gemspec\n"],["Gemfile.lock","","Gemfile_lock.html","","<p>PATH\n\n<pre>remote: .\nspecs:\n absorb_api (0.9.0)\n activemodel\n activesupport\n faraday\n faraday_middleware ...</pre>\n"],["Icon\r","","Icon\r.html","",""],["LICENSE","","LICENSE_txt.html","","<p>The MIT License (MIT)\n<p>Copyright © 2016 npezza93\n<p>Permission is hereby granted, free of charge, to any …\n"],["README","","README_md.html","","<p>Absorb LMS API Wrapper\n<p>“Absorb LMS is a powerful, flexible, and visually stunning software\nplatform …\n"],["Rakefile","","Rakefile.html","","<p>require “bundler/gem_tasks” task default: :spec\n"],["absorb_api.gemspec","","absorb_api_gemspec.html","","<p>$LOAD_PATH.push File.expand_path(“../lib”, __FILE__)\n<p>require “absorb_api/version” …\n"],["setup","","bin/setup.html","","<p>#!/usr/bin/env bash set -euo pipefail IFS=$&#39;nt&#39; set -vx\n<p>bundle install\n<p># Do any other automated …\n"]]}}
Binary file
@@ -172,6 +172,7 @@ Searcher.prototype = new function() {
172
172
  result.path = info[2];
173
173
  result.params = info[3];
174
174
  result.snippet = info[4];
175
+ result.badge = info[6];
175
176
  return result;
176
177
  }
177
178
 
Binary file
@@ -8,6 +8,7 @@
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
11
12
  </script>
12
13
 
13
14
  <script src="./js/jquery.js"></script>
@@ -25,10 +26,26 @@
25
26
  <h2 id="pages">Pages</h2>
26
27
  <ul>
27
28
  <li class="file">
29
+ <a href="CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
30
+
31
+ <ul>
32
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Contributor+Covenant+Code+of+Conduct">Contributor Covenant Code of Conduct</a>
33
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Our+Pledge">Our Pledge</a>
34
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Our+Standards">Our Standards</a>
35
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Our+Responsibilities">Our Responsibilities</a>
36
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Scope">Scope</a>
37
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Enforcement">Enforcement</a>
38
+ <li><a href="CODE_OF_CONDUCT_md.html#label-Attribution">Attribution</a>
39
+ </ul>
40
+ </li>
41
+ <li class="file">
28
42
  <a href="Gemfile.html">Gemfile</a>
29
43
  </li>
30
44
  <li class="file">
31
45
  <a href="Gemfile_lock.html">Gemfile.lock</a>
46
+ </li>
47
+ <li class="file">
48
+ <a href="Icon
32
49
  </li>
33
50
  <li class="file">
34
51
  <a href="LICENSE_txt.html">LICENSE</a>
@@ -80,7 +97,10 @@
80
97
  <a href="AbsorbApi.html">AbsorbApi</a>
81
98
  </li>
82
99
  <li class="class">
83
- <a href="AbsorbApi/Base.html">AbsorbApi::Base</a>
100
+ <a href="AbsorbApi/Api.html">AbsorbApi::Api</a>
101
+ </li>
102
+ <li class="class">
103
+ <a href="AbsorbApi/Authorize.html">AbsorbApi::Authorize</a>
84
104
  </li>
85
105
  <li class="class">
86
106
  <a href="AbsorbApi/Category.html">AbsorbApi::Category</a>
@@ -103,6 +123,9 @@
103
123
  <li class="class">
104
124
  <a href="AbsorbApi/CourseEnrollment.html">AbsorbApi::CourseEnrollment</a>
105
125
  </li>
126
+ <li class="module">
127
+ <a href="AbsorbApi/Create.html">AbsorbApi::Create</a>
128
+ </li>
106
129
  <li class="class">
107
130
  <a href="AbsorbApi/Curriculum.html">AbsorbApi::Curriculum</a>
108
131
  </li>
@@ -115,15 +138,18 @@
115
138
  <li class="class">
116
139
  <a href="AbsorbApi/LessonEnrollment.html">AbsorbApi::LessonEnrollment</a>
117
140
  </li>
118
- <li class="module">
119
- <a href="AbsorbApi/Orm.html">AbsorbApi::Orm</a>
120
- </li>
121
141
  <li class="class">
122
142
  <a href="AbsorbApi/Prerequisite.html">AbsorbApi::Prerequisite</a>
123
143
  </li>
144
+ <li class="class">
145
+ <a href="AbsorbApi/Record.html">AbsorbApi::Record</a>
146
+ </li>
124
147
  <li class="module">
125
148
  <a href="AbsorbApi/Relations.html">AbsorbApi::Relations</a>
126
149
  </li>
150
+ <li class="module">
151
+ <a href="AbsorbApi/Relations/ClassMethods.html">AbsorbApi::Relations::ClassMethods</a>
152
+ </li>
127
153
  <li class="class">
128
154
  <a href="AbsorbApi/Resource.html">AbsorbApi::Resource</a>
129
155
  </li>
@@ -148,40 +174,46 @@
148
174
  <li class="class">
149
175
  <a href="AbsorbApi/ValidationError.html">AbsorbApi::ValidationError</a>
150
176
  </li>
177
+ <li class="module">
178
+ <a href="AbsorbApi/Where.html">AbsorbApi::Where</a>
179
+ </li>
180
+ <li class="class">
181
+ <a href="Object.html">Object</a>
182
+ </li>
151
183
  </ul>
152
184
 
153
185
  <h2 id="methods">Methods</h2>
154
186
  <ul>
155
187
 
156
188
  <li class="method">
157
- <a href="AbsorbApi.html#method-c-api">::api</a>
189
+ <a href="AbsorbApi/Record.html#method-c-all">::all</a>
158
190
  &mdash;
159
- <span class="container">AbsorbApi</span>
191
+ <span class="container">AbsorbApi::Record</span>
160
192
 
161
193
  <li class="method">
162
- <a href="AbsorbApi.html#method-c-authorize">::authorize</a>
194
+ <a href="AbsorbApi/Record.html#method-c-can_create">::can_create</a>
163
195
  &mdash;
164
- <span class="container">AbsorbApi</span>
196
+ <span class="container">AbsorbApi::Record</span>
165
197
 
166
198
  <li class="method">
167
- <a href="AbsorbApi.html#method-c-configure">::configure</a>
199
+ <a href="AbsorbApi/Record.html#method-c-can_search">::can_search</a>
168
200
  &mdash;
169
- <span class="container">AbsorbApi</span>
201
+ <span class="container">AbsorbApi::Record</span>
170
202
 
171
203
  <li class="method">
172
- <a href="AbsorbApi/User.html#method-c-courses_from_collection">::courses_from_collection</a>
204
+ <a href="AbsorbApi.html#method-c-configuration">::configuration</a>
173
205
  &mdash;
174
- <span class="container">AbsorbApi::User</span>
206
+ <span class="container">AbsorbApi</span>
175
207
 
176
208
  <li class="method">
177
- <a href="AbsorbApi/Course.html#method-c-enrollments_from_collection">::enrollments_from_collection</a>
209
+ <a href="AbsorbApi.html#method-c-configure">::configure</a>
178
210
  &mdash;
179
- <span class="container">AbsorbApi::Course</span>
211
+ <span class="container">AbsorbApi</span>
180
212
 
181
213
  <li class="method">
182
- <a href="AbsorbApi/CourseEnrollment.html#method-c-lessons_from_collection">::lessons_from_collection</a>
214
+ <a href="AbsorbApi/Record.html#method-c-find">::find</a>
183
215
  &mdash;
184
- <span class="container">AbsorbApi::CourseEnrollment</span>
216
+ <span class="container">AbsorbApi::Record</span>
185
217
 
186
218
  <li class="method">
187
219
  <a href="AbsorbApi/Collection.html#method-c-new">::new</a>
@@ -189,9 +221,14 @@
189
221
  <span class="container">AbsorbApi::Collection</span>
190
222
 
191
223
  <li class="method">
192
- <a href="AbsorbApi/Base.html#method-c-new">::new</a>
224
+ <a href="AbsorbApi/Authorize.html#method-c-new">::new</a>
225
+ &mdash;
226
+ <span class="container">AbsorbApi::Authorize</span>
227
+
228
+ <li class="method">
229
+ <a href="AbsorbApi/Record.html#method-c-new">::new</a>
193
230
  &mdash;
194
- <span class="container">AbsorbApi::Base</span>
231
+ <span class="container">AbsorbApi::Record</span>
195
232
 
196
233
  <li class="method">
197
234
  <a href="AbsorbApi.html#method-c-reset">::reset</a>
@@ -199,29 +236,39 @@
199
236
  <span class="container">AbsorbApi</span>
200
237
 
201
238
  <li class="method">
202
- <a href="AbsorbApi/Orm.html#method-i-all">#all</a>
239
+ <a href="AbsorbApi.html#method-c-token">::token</a>
203
240
  &mdash;
204
- <span class="container">AbsorbApi::Orm</span>
241
+ <span class="container">AbsorbApi</span>
242
+
243
+ <li class="method">
244
+ <a href="AbsorbApi/Record.html#method-c-with_relationships">::with_relationships</a>
245
+ &mdash;
246
+ <span class="container">AbsorbApi::Record</span>
205
247
 
206
248
  <li class="method">
207
- <a href="AbsorbApi/Relations.html#method-i-create">#create</a>
249
+ <a href="AbsorbApi/Api.html#method-i-connection">#connection</a>
208
250
  &mdash;
209
- <span class="container">AbsorbApi::Relations</span>
251
+ <span class="container">AbsorbApi::Api</span>
210
252
 
211
253
  <li class="method">
212
- <a href="AbsorbApi/Orm.html#method-i-find">#find</a>
254
+ <a href="AbsorbApi/Create.html#method-i-create">#create</a>
213
255
  &mdash;
214
- <span class="container">AbsorbApi::Orm</span>
256
+ <span class="container">AbsorbApi::Create</span>
215
257
 
216
258
  <li class="method">
217
- <a href="AbsorbApi/Relations.html#method-i-has_many">#has_many</a>
259
+ <a href="AbsorbApi/Api.html#method-i-delete">#delete</a>
218
260
  &mdash;
219
- <span class="container">AbsorbApi::Relations</span>
261
+ <span class="container">AbsorbApi::Api</span>
220
262
 
221
263
  <li class="method">
222
- <a href="AbsorbApi/Relations.html#method-i-has_one">#has_one</a>
264
+ <a href="AbsorbApi/Authorize.html#method-i-expired-3F">#expired?</a>
223
265
  &mdash;
224
- <span class="container">AbsorbApi::Relations</span>
266
+ <span class="container">AbsorbApi::Authorize</span>
267
+
268
+ <li class="method">
269
+ <a href="AbsorbApi/Api.html#method-i-get">#get</a>
270
+ &mdash;
271
+ <span class="container">AbsorbApi::Api</span>
225
272
 
226
273
  <li class="method">
227
274
  <a href="AbsorbApi/CourseEnrollment.html#method-i-lessons">#lessons</a>
@@ -229,16 +276,56 @@
229
276
  <span class="container">AbsorbApi::CourseEnrollment</span>
230
277
 
231
278
  <li class="method">
232
- <a href="AbsorbApi/Relations.html#method-i-where">#where</a>
279
+ <a href="AbsorbApi/Api.html#method-i-patch">#patch</a>
280
+ &mdash;
281
+ <span class="container">AbsorbApi::Api</span>
282
+
283
+ <li class="method">
284
+ <a href="AbsorbApi/Api.html#method-i-post">#post</a>
285
+ &mdash;
286
+ <span class="container">AbsorbApi::Api</span>
287
+
288
+ <li class="method">
289
+ <a href="AbsorbApi/Api.html#method-i-put">#put</a>
290
+ &mdash;
291
+ <span class="container">AbsorbApi::Api</span>
292
+
293
+ <li class="method">
294
+ <a href="Object.html#method-i-reload-21">#reload!</a>
295
+ &mdash;
296
+ <span class="container">Object</span>
297
+
298
+ <li class="method">
299
+ <a href="AbsorbApi/Authorize.html#method-i-token">#token</a>
300
+ &mdash;
301
+ <span class="container">AbsorbApi::Authorize</span>
302
+
303
+ <li class="method">
304
+ <a href="AbsorbApi/User.html#method-i-update">#update</a>
305
+ &mdash;
306
+ <span class="container">AbsorbApi::User</span>
307
+
308
+ <li class="method">
309
+ <a href="AbsorbApi/Where.html#method-i-where">#where</a>
310
+ &mdash;
311
+ <span class="container">AbsorbApi::Where</span>
312
+
313
+ <li class="method">
314
+ <a href="AbsorbApi/Relations/ClassMethods.html#method-i-with_many">#with_many</a>
315
+ &mdash;
316
+ <span class="container">AbsorbApi::Relations::ClassMethods</span>
317
+
318
+ <li class="method">
319
+ <a href="AbsorbApi/Relations/ClassMethods.html#method-i-with_one">#with_one</a>
233
320
  &mdash;
234
- <span class="container">AbsorbApi::Relations</span>
321
+ <span class="container">AbsorbApi::Relations::ClassMethods</span>
235
322
  </ul>
236
323
  </main>
237
324
 
238
325
 
239
326
  <footer id="validator-badges" role="contentinfo">
240
327
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
241
- <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
328
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
242
329
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
243
330
  </footer>
244
331
 
@@ -1,34 +1,48 @@
1
- require 'faraday'
2
- require 'typhoeus/adapters/faraday'
3
- require 'json'
4
- require 'faraday_middleware'
5
- require 'active_support/all'
6
- require 'active_model'
1
+ # frozen_string_literal: true
7
2
 
8
- require 'absorb_api/orm'
9
- require 'absorb_api/relations'
10
- require 'absorb_api/collection'
3
+ require "faraday"
4
+ require "typhoeus/adapters/faraday"
5
+ require "json"
6
+ require "faraday_middleware"
7
+ require "active_support/all"
8
+ require "active_model"
11
9
 
12
- require 'absorb_api/version'
13
- require 'absorb_api/configuration'
14
- require 'absorb_api/base'
15
- require 'absorb_api/user'
16
- require 'absorb_api/course'
17
- require 'absorb_api/course_enrollment'
18
- require 'absorb_api/lesson_enrollment'
19
- require 'absorb_api/category'
20
- require 'absorb_api/certificate'
21
- require 'absorb_api/chapter'
22
- require 'absorb_api/curriculum'
23
- require 'absorb_api/department'
24
- require 'absorb_api/tag'
25
- require 'absorb_api/session_schedule'
26
- require 'absorb_api/role'
27
- require 'absorb_api/resource'
28
- require 'absorb_api/prerequisite'
29
- require 'absorb_api/lesson'
30
- require 'absorb_api/authorize'
31
- require 'absorb_api/api'
10
+ require "absorb_api/relations"
11
+ require "absorb_api/create"
12
+ require "absorb_api/where"
13
+ require "absorb_api/collection"
14
+
15
+ require "absorb_api/version"
16
+ require "absorb_api/configuration"
17
+ require "absorb_api/record"
18
+ require "absorb_api/user"
19
+ require "absorb_api/course"
20
+ require "absorb_api/course_enrollment"
21
+ require "absorb_api/lesson_enrollment"
22
+ require "absorb_api/category"
23
+ require "absorb_api/certificate"
24
+ require "absorb_api/chapter"
25
+ require "absorb_api/curriculum"
26
+ require "absorb_api/department"
27
+ require "absorb_api/tag"
28
+ require "absorb_api/session_schedule"
29
+ require "absorb_api/role"
30
+ require "absorb_api/resource"
31
+ require "absorb_api/prerequisite"
32
+ require "absorb_api/lesson"
33
+ require "absorb_api/authorize"
34
+ require "absorb_api/api"
32
35
 
33
36
  module AbsorbApi
37
+ class ResourceNotFound < StandardError; end
38
+ class RouteNotFound < StandardError; end
39
+ class ValidationError < StandardError; end
40
+
41
+ cattr_accessor :authorization
42
+
43
+ def self.token
44
+ self.authorization ||= Authorize.new
45
+
46
+ self.authorization.token
47
+ end
34
48
  end