absorb_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +11 -0
- data/LICENSE.txt +21 -0
- data/README.md +203 -0
- data/Rakefile +2 -0
- data/absorb_api.gemspec +25 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/AbsorbApi.html +216 -0
- data/doc/AbsorbApi/Base.html +239 -0
- data/doc/AbsorbApi/Category.html +173 -0
- data/doc/AbsorbApi/Certificate.html +212 -0
- data/doc/AbsorbApi/Chapter.html +160 -0
- data/doc/AbsorbApi/Collection.html +180 -0
- data/doc/AbsorbApi/Configuration.html +188 -0
- data/doc/AbsorbApi/Course.html +534 -0
- data/doc/AbsorbApi/CourseEnrollment.html +437 -0
- data/doc/AbsorbApi/Curriculum.html +498 -0
- data/doc/AbsorbApi/Department.html +242 -0
- data/doc/AbsorbApi/LessonEnrollment.html +370 -0
- data/doc/AbsorbApi/Orm.html +201 -0
- data/doc/AbsorbApi/Relations.html +301 -0
- data/doc/AbsorbApi/ResourceNotFound.html +102 -0
- data/doc/AbsorbApi/RouteNotFound.html +102 -0
- data/doc/AbsorbApi/User.html +615 -0
- data/doc/AbsorbApi/ValidationError.html +102 -0
- data/doc/Gemfile.html +100 -0
- data/doc/Gemfile_lock.html +150 -0
- data/doc/LICENSE_txt.html +113 -0
- data/doc/README_md.html +340 -0
- data/doc/Rakefile.html +93 -0
- data/doc/absorb_api_gemspec.html +126 -0
- data/doc/bin/setup.html +97 -0
- data/doc/created.rid +26 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +135 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +218 -0
- data/lib/absorb_api.rb +26 -0
- data/lib/absorb_api/base.rb +31 -0
- data/lib/absorb_api/category.rb +7 -0
- data/lib/absorb_api/certificate.rb +7 -0
- data/lib/absorb_api/chapter.rb +7 -0
- data/lib/absorb_api/collection.rb +19 -0
- data/lib/absorb_api/configuration.rb +21 -0
- data/lib/absorb_api/course.rb +24 -0
- data/lib/absorb_api/course_enrollment.rb +33 -0
- data/lib/absorb_api/curriculum.rb +7 -0
- data/lib/absorb_api/department.rb +10 -0
- data/lib/absorb_api/lesson_enrollment.rb +5 -0
- data/lib/absorb_api/orm.rb +28 -0
- data/lib/absorb_api/relations.rb +62 -0
- data/lib/absorb_api/user.rb +27 -0
- data/lib/absorb_api/version.rb +3 -0
- metadata +168 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3691bed9934f3ceb0bc5e98a4e67fd957d68d6a9
|
4
|
+
data.tar.gz: 33fee37c847cd32e1fa1bd4adcfadc279f8b62d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 172856c56726089fc4136ed9640432bd8a056d2630178faeb4fb970113b50522691ae341cf4781a70e09e1f45e75a49f9b7da1e00a942503873db35abbfc5f35
|
7
|
+
data.tar.gz: 7cf9613318f8782f67a5d59afb9a7ff743eb075981238e41994fe3dd9e00f80f6fee9934e8af7081a6aa11c7ab2a9e35ac7993b4ac5fc96629f4f6e015591407
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 npezza93
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
# Absorb LMS API Wrapper
|
2
|
+
|
3
|
+
"Absorb LMS is a powerful, flexible, and visually stunning software platform teamed with expert implementation and support to help you build the training programs your business needs. Whether your old LMS is slowing you down or you’ve outgrown your current training model, Absorb can help.
|
4
|
+
"
|
5
|
+
|
6
|
+
All the available REST routes can be found [here](https://myabsorb.com/api/rest/v1/Help).
|
7
|
+
|
8
|
+
Full documentation can be found at [http://npezza93.github.io/absorb_api/](http://npezza93.github.io/absorb_api/)
|
9
|
+
## Table of Contents
|
10
|
+
1. [Installation](#installation)
|
11
|
+
2. [Configuration](#configuration)
|
12
|
+
3. [Models](#models)
|
13
|
+
* [User](#user)
|
14
|
+
* [Course](#course)
|
15
|
+
* [Category](#category)
|
16
|
+
* [Certificate](#certificate)
|
17
|
+
* [Chapter](#chapter)
|
18
|
+
* [Curriculum](#curriculum)
|
19
|
+
* [Department](#department)
|
20
|
+
4. [Development](#development)
|
21
|
+
|
22
|
+
## Installation
|
23
|
+
Add this line to your application's Gemfile:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
gem 'absorb_api'
|
27
|
+
```
|
28
|
+
|
29
|
+
And then execute:
|
30
|
+
|
31
|
+
$ bundle
|
32
|
+
|
33
|
+
Or install it yourself as:
|
34
|
+
|
35
|
+
$ gem install absorb_api
|
36
|
+
|
37
|
+
## Configuration
|
38
|
+
```ruby
|
39
|
+
AbsorbApi.configure do |c|
|
40
|
+
c.absorbuser = absorb_username
|
41
|
+
c.absorbpass = absorb_password
|
42
|
+
c.absorbkey = absorb_privatekey
|
43
|
+
c.url = absorb_url
|
44
|
+
c.ignored_course_ids = [course_ids_to_ignore]
|
45
|
+
c.ignored_lesson_types = [lesson_types_to_ignore]
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
## Models
|
50
|
+
|
51
|
+
### User
|
52
|
+
```ruby
|
53
|
+
# To return a collection of all available users
|
54
|
+
AbsorbApi::User.all
|
55
|
+
|
56
|
+
# To find a single user by id:
|
57
|
+
AbsorbApi::User.find(id)
|
58
|
+
|
59
|
+
# To return a collection of users matching conditions
|
60
|
+
AbsorbApi::User.where(conditions)
|
61
|
+
# available conditions include email, username, modifiedSince, and externalId
|
62
|
+
AbsorbApi::User.where(email: "email@gmail.com")
|
63
|
+
|
64
|
+
# To return a collection of enrollments for a specific user:
|
65
|
+
user.enrollments
|
66
|
+
# Available filters for enrollments include status and modifiedSince
|
67
|
+
user.enrollments(status: 0, modifiedSince: DateTime.new(2016, 1, 1).to_s)
|
68
|
+
|
69
|
+
# To return a collection of all certificates awarded to a user
|
70
|
+
user.certificates
|
71
|
+
# To return a single certificate for a specific user
|
72
|
+
user.find_certificate(id)
|
73
|
+
|
74
|
+
# To return a collection of all courses available for enrollment for a user
|
75
|
+
user.courses
|
76
|
+
|
77
|
+
# To create a new user
|
78
|
+
AbsorbApi::User.create(department_id: "department_id", first_name: "first_name", last_name: "last_name", user_name: "user_name", email_address: "email_address", password: "password")
|
79
|
+
# or
|
80
|
+
AbsorbApi::User.create do |user|
|
81
|
+
user.department_id = "department_id"
|
82
|
+
user.first_name = "first_name"
|
83
|
+
user.last_name = "last_name"
|
84
|
+
user.user_name = "user_name"
|
85
|
+
user.email_address = "email_address"
|
86
|
+
user.password = "password"
|
87
|
+
end
|
88
|
+
```
|
89
|
+
|
90
|
+
To return a collection of courses available per user given a collection of users:
|
91
|
+
```ruby
|
92
|
+
users = AbsorbApi::User.all
|
93
|
+
courses = AbsorbApi::User.courses_from_collection(users)
|
94
|
+
```
|
95
|
+
|
96
|
+
### Course
|
97
|
+
```ruby
|
98
|
+
# To return a collection of all available courses
|
99
|
+
AbsorbApi::Course.all
|
100
|
+
|
101
|
+
# To find a single course by id
|
102
|
+
AbsorbApi::Course.find(id)
|
103
|
+
|
104
|
+
# To return a collection of courses matching conditions
|
105
|
+
AbsorbApi::Course.where(conditions)
|
106
|
+
# available conditions include modifiedSince and externalId
|
107
|
+
AbsorbApi::Course.where(modifiedSince: DateTime.new(2016,1,1).to_s)
|
108
|
+
|
109
|
+
# To return a collection of enrollments for a specific course:
|
110
|
+
course.enrollments
|
111
|
+
# Available filters for enrollments include status and modifiedSince
|
112
|
+
course.enrollments(status: 0, modifiedSince: DateTime.new(2016, 1, 1).to_s)
|
113
|
+
|
114
|
+
# To return a collection of all certificates awarded to a user
|
115
|
+
course.certificates
|
116
|
+
# Available filters for certificates include includeExpired, acquiredDate, and expiryDate
|
117
|
+
course.certificates(includeExpired: true)
|
118
|
+
# To return a single certificate for a specific course
|
119
|
+
course.find_certificate(id)
|
120
|
+
|
121
|
+
# To return a collection of chapters for a specific course
|
122
|
+
course.chapters
|
123
|
+
# To return a single chapters for a specific course
|
124
|
+
course.find_chapter(id)
|
125
|
+
```
|
126
|
+
|
127
|
+
To return a collection of associated enrollments given a collection of courses
|
128
|
+
```ruby
|
129
|
+
AbsorbApi::Course.enrollments_from_collection(AbsorbApi::Course.all)
|
130
|
+
```
|
131
|
+
|
132
|
+
### Category
|
133
|
+
```ruby
|
134
|
+
# To return a collection of all available categories
|
135
|
+
AbsorbApi::Category.all
|
136
|
+
|
137
|
+
# To find a single category by id:
|
138
|
+
AbsorbApi::Category.find(id)
|
139
|
+
```
|
140
|
+
|
141
|
+
### Certificate
|
142
|
+
```ruby
|
143
|
+
# To find a single certificate by id
|
144
|
+
AbsorbApi::Certificate.find(id)
|
145
|
+
```
|
146
|
+
|
147
|
+
### Chapter
|
148
|
+
```ruby
|
149
|
+
# To return a collection of all available chapters
|
150
|
+
AbsorbApi::Chapter.all
|
151
|
+
|
152
|
+
# To find a single chapter by id
|
153
|
+
AbsorbApi::Chapter.find(id)
|
154
|
+
```
|
155
|
+
|
156
|
+
### Curriculum
|
157
|
+
```ruby
|
158
|
+
# To return a collection of all available curriculums
|
159
|
+
AbsorbApi::Curriculum.all
|
160
|
+
|
161
|
+
# To find a single curriculum by id
|
162
|
+
AbsorbApi::Curriculum.find(id)
|
163
|
+
```
|
164
|
+
|
165
|
+
### Department
|
166
|
+
```ruby
|
167
|
+
# To return a collection of all available departments
|
168
|
+
AbsorbApi::Department.all
|
169
|
+
|
170
|
+
# To find a single department by id
|
171
|
+
AbsorbApi::Department.find(id)
|
172
|
+
|
173
|
+
# To return a collection of departments matching conditions
|
174
|
+
AbsorbApi::Department.where(conditions)
|
175
|
+
# available conditions include departmentName, and externalId
|
176
|
+
AbsorbApi::Department.where(departmentName: "Technology")
|
177
|
+
|
178
|
+
# To return the parent department
|
179
|
+
department.parent
|
180
|
+
|
181
|
+
# To create a new department
|
182
|
+
AbsorbApi::Department.create(name: "Test Department", parent_id: 1)
|
183
|
+
# or
|
184
|
+
AbsorbApi::Department.create do |department|
|
185
|
+
department.name = "Test Department"
|
186
|
+
department.parent_id = 1
|
187
|
+
end
|
188
|
+
```
|
189
|
+
|
190
|
+
## Development
|
191
|
+
|
192
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
193
|
+
|
194
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
195
|
+
|
196
|
+
## Contributing
|
197
|
+
|
198
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/npezza93/absorb_api.
|
199
|
+
|
200
|
+
|
201
|
+
## License
|
202
|
+
|
203
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/absorb_api.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'absorb_api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "absorb_api"
|
8
|
+
spec.version = AbsorbApi::VERSION
|
9
|
+
spec.authors = ["npezza93"]
|
10
|
+
spec.email = ["npezza93@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "API wrapper for Absorb LMS"
|
13
|
+
spec.description = "\"Absorb LMS is a powerful, flexible, and visually stunning software platform teamed with expert implementation and support to help you build the training programs your business needs. Whether your old LMS is slowing you down or you’ve outgrown your current training model, Absorb can help.
|
14
|
+
\""
|
15
|
+
spec.homepage = "https://github.com/npezza93/absorb_api"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ["lib"]
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "absorb_api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/doc/AbsorbApi.html
ADDED
@@ -0,0 +1,216 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module AbsorbApi - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="module">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<!-- Method Quickref -->
|
61
|
+
<div id="method-list-section" class="nav-section">
|
62
|
+
<h3>Methods</h3>
|
63
|
+
|
64
|
+
<ul class="link-list" role="directory">
|
65
|
+
|
66
|
+
<li ><a href="#method-c-configure">::configure</a>
|
67
|
+
|
68
|
+
<li ><a href="#method-c-reset">::reset</a>
|
69
|
+
|
70
|
+
</ul>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
</div>
|
74
|
+
</nav>
|
75
|
+
|
76
|
+
<main role="main" aria-labelledby="module-AbsorbApi">
|
77
|
+
<h1 id="module-AbsorbApi" class="module">
|
78
|
+
module AbsorbApi
|
79
|
+
</h1>
|
80
|
+
|
81
|
+
<section class="description">
|
82
|
+
|
83
|
+
</section>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<section class="constants-list">
|
95
|
+
<header>
|
96
|
+
<h3>Constants</h3>
|
97
|
+
</header>
|
98
|
+
<dl>
|
99
|
+
|
100
|
+
<dt id="VERSION">VERSION
|
101
|
+
|
102
|
+
<dd>
|
103
|
+
|
104
|
+
|
105
|
+
</dl>
|
106
|
+
</section>
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<section class="attribute-method-details" class="method-section">
|
111
|
+
<header>
|
112
|
+
<h3>Attributes</h3>
|
113
|
+
</header>
|
114
|
+
|
115
|
+
|
116
|
+
<div id="attribute-c-configuration" class="method-detail">
|
117
|
+
<div class="method-heading attribute-method-heading">
|
118
|
+
<span class="method-name">configuration</span><span
|
119
|
+
class="attribute-access-type">[RW]</span>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
<div class="method-description">
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</section>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
134
|
+
<header>
|
135
|
+
<h3>Public Class Methods</h3>
|
136
|
+
</header>
|
137
|
+
|
138
|
+
|
139
|
+
<div id="method-c-configure" class="method-detail ">
|
140
|
+
|
141
|
+
<div class="method-heading">
|
142
|
+
<span class="method-name">configure</span><span
|
143
|
+
class="method-args">() { |configuration| ... }</span>
|
144
|
+
|
145
|
+
<span class="method-click-advice">click to toggle source</span>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
|
150
|
+
<div class="method-description">
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<div class="method-source-code" id="configure-source">
|
158
|
+
<pre><span class="ruby-comment"># File lib/absorb_api/configuration.rb, line 18</span>
|
159
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">configure</span>
|
160
|
+
<span class="ruby-keyword">yield</span>(<span class="ruby-identifier">configuration</span>)
|
161
|
+
<span class="ruby-keyword">end</span></pre>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
</div>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
</div>
|
170
|
+
|
171
|
+
|
172
|
+
<div id="method-c-reset" class="method-detail ">
|
173
|
+
|
174
|
+
<div class="method-heading">
|
175
|
+
<span class="method-name">reset</span><span
|
176
|
+
class="method-args">()</span>
|
177
|
+
|
178
|
+
<span class="method-click-advice">click to toggle source</span>
|
179
|
+
|
180
|
+
</div>
|
181
|
+
|
182
|
+
|
183
|
+
<div class="method-description">
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<div class="method-source-code" id="reset-source">
|
191
|
+
<pre><span class="ruby-comment"># File lib/absorb_api/configuration.rb, line 14</span>
|
192
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">reset</span>
|
193
|
+
<span class="ruby-ivar">@configuration</span> = <span class="ruby-constant">Configuration</span>.<span class="ruby-identifier">new</span>
|
194
|
+
<span class="ruby-keyword">end</span></pre>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</div>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</div>
|
203
|
+
|
204
|
+
|
205
|
+
</section>
|
206
|
+
|
207
|
+
</section>
|
208
|
+
</main>
|
209
|
+
|
210
|
+
|
211
|
+
<footer id="validator-badges" role="contentinfo">
|
212
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
213
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
214
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
215
|
+
</footer>
|
216
|
+
|