workos 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +49 -0
- data/.rspec +1 -0
- data/.rubocop.yml +10 -0
- data/.ruby-version +1 -0
- data/.semaphore/rubygems.yml +19 -0
- data/.semaphore/semaphore.yml +63 -0
- data/CODEOWNERS +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +84 -0
- data/LICENSE +21 -0
- data/README.md +21 -0
- data/bin/build +3 -0
- data/bin/console +3 -0
- data/bin/docs +5 -0
- data/bin/publish +3 -0
- data/codecov.yml +11 -0
- data/docs/WorkOS.html +328 -0
- data/docs/WorkOS/Base.html +281 -0
- data/docs/WorkOS/Profile.html +725 -0
- data/docs/WorkOS/RequestError.html +135 -0
- data/docs/WorkOS/SSO.html +511 -0
- data/docs/WorkOS/Types.html +129 -0
- data/docs/WorkOS/Types/ProfileStruct.html +135 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.README.html +92 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +189 -0
- data/docs/js/app.js +303 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +171 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/workos.rb +36 -0
- data/lib/workos/base.rb +18 -0
- data/lib/workos/profile.rb +53 -0
- data/lib/workos/request_error.rb +5 -0
- data/lib/workos/sso.rb +142 -0
- data/lib/workos/types.rb +11 -0
- data/lib/workos/types/profile_struct.rb +18 -0
- data/lib/workos/version.rb +7 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/addressable.rbi +198 -0
- data/sorbet/rbi/gems/ast.rbi +47 -0
- data/sorbet/rbi/gems/codecov.rbi +19 -0
- data/sorbet/rbi/gems/crack.rbi +47 -0
- data/sorbet/rbi/gems/docile.rbi +31 -0
- data/sorbet/rbi/gems/hashdiff.rbi +65 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
- data/sorbet/rbi/gems/parallel.rbi +81 -0
- data/sorbet/rbi/gems/parser.rbi +856 -0
- data/sorbet/rbi/gems/public_suffix.rbi +102 -0
- data/sorbet/rbi/gems/rack.rbi +103 -0
- data/sorbet/rbi/gems/rainbow.rbi +117 -0
- data/sorbet/rbi/gems/rake.rbi +632 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1661 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +388 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +823 -0
- data/sorbet/rbi/gems/rspec-support.rbi +266 -0
- data/sorbet/rbi/gems/rspec.rbi +14 -0
- data/sorbet/rbi/gems/rubocop.rbi +7083 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
- data/sorbet/rbi/gems/simplecov.rbi +225 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
- data/sorbet/rbi/gems/webmock.rbi +526 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +6061 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +10087 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/sorbet/rbi/todo.rbi +7 -0
- data/spec/lib/workos/sso_spec.rb +95 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/support/profile.txt +1 -0
- data/workos.gemspec +32 -0
- metadata +261 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e25f5d670fe726182a479501cb808ee010744129e7ab8cac60725d00024ee099
|
4
|
+
data.tar.gz: 91b1787655754e618177f40bb2d1fb0576d2ba0221f5b56684a24c49535523d9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0cc489522cbf572a11c9fbdbf1af78dafc504a6894cdb89b069e22962075a31d7c4ef4f5fb850d57c72cca32254006a9955ae90244b12dd5c74810769ae68530
|
7
|
+
data.tar.gz: 6acd006d213a7b7fe2a0469903e439e0bf2a3897b5609c079f3eff26219b534299121a3cef45a489b9b338908e27402fcb9502a4e37a54f6936ac7bc9244be23
|
data/.gitignore
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
*.DS_Store
|
4
|
+
/.config
|
5
|
+
/coverage/
|
6
|
+
/InstalledFiles
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/spec/examples.txt
|
10
|
+
/test/tmp/
|
11
|
+
/test/version_tmp/
|
12
|
+
/tmp/
|
13
|
+
|
14
|
+
# Used by dotenv library to load environment variables.
|
15
|
+
# .env
|
16
|
+
|
17
|
+
# Ignore Byebug command history file.
|
18
|
+
.byebug_history
|
19
|
+
|
20
|
+
## Specific to RubyMotion (use of CocoaPods):
|
21
|
+
#
|
22
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
23
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
24
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
25
|
+
#
|
26
|
+
# vendor/Pods/
|
27
|
+
|
28
|
+
## Documentation cache and generated files:
|
29
|
+
/.yardoc/
|
30
|
+
/_yardoc/
|
31
|
+
/doc/
|
32
|
+
/rdoc/
|
33
|
+
|
34
|
+
## Environment normalization:
|
35
|
+
/.bundle/
|
36
|
+
/vendor/bundle
|
37
|
+
/lib/bundler/man/
|
38
|
+
|
39
|
+
# for a library or gem, you might want to ignore these files since the code is
|
40
|
+
# intended to run in multiple environments; otherwise, check them in:
|
41
|
+
# Gemfile.lock
|
42
|
+
# .ruby-version
|
43
|
+
# .ruby-gemset
|
44
|
+
|
45
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
46
|
+
.rvmrc
|
47
|
+
|
48
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
49
|
+
# .rubocop-https?--*
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Layout/DotPosition:
|
2
|
+
EnforcedStyle: trailing
|
3
|
+
Layout/EmptyLineAfterMagicComment:
|
4
|
+
Enabled: false
|
5
|
+
Layout/EmptyLines:
|
6
|
+
Enabled: false
|
7
|
+
Metrics/BlockLength:
|
8
|
+
ExcludedMethods: ['describe', 'context']
|
9
|
+
Style/TrailingCommaInArguments:
|
10
|
+
EnforcedStyleForMultiline: 'consistent_comma'
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.4.9
|
@@ -0,0 +1,19 @@
|
|
1
|
+
version: v1.0
|
2
|
+
|
3
|
+
name: Rubygems deployment
|
4
|
+
agent:
|
5
|
+
machine:
|
6
|
+
type: e1-standard-2
|
7
|
+
os_image: ubuntu1804
|
8
|
+
|
9
|
+
blocks:
|
10
|
+
- name: Build & Publish 🛠 💎
|
11
|
+
task:
|
12
|
+
secrets:
|
13
|
+
- name: workos-rubygems
|
14
|
+
jobs:
|
15
|
+
- name: Publish to Rubygems
|
16
|
+
commands:
|
17
|
+
- checkout --use-cache
|
18
|
+
- bundle exec gem build workos --output=release.gem
|
19
|
+
- bundle exec gem push release.gem
|
@@ -0,0 +1,63 @@
|
|
1
|
+
version: v1.0
|
2
|
+
name: Ruby
|
3
|
+
agent:
|
4
|
+
machine:
|
5
|
+
type: e1-standard-2
|
6
|
+
os_image: ubuntu1804
|
7
|
+
blocks:
|
8
|
+
- name: Run Sorbet 🍦
|
9
|
+
task:
|
10
|
+
jobs:
|
11
|
+
- name: srb tc
|
12
|
+
commands:
|
13
|
+
- checkout
|
14
|
+
- sem-version ruby 2.3.4
|
15
|
+
- bundle install
|
16
|
+
- bundle exec srb tc
|
17
|
+
- name: Run Rubocop 🚔
|
18
|
+
task:
|
19
|
+
jobs:
|
20
|
+
- name: rubocop
|
21
|
+
commands:
|
22
|
+
- checkout
|
23
|
+
- sem-version ruby 2.3.4
|
24
|
+
- bundle install
|
25
|
+
- bundle exec rubocop
|
26
|
+
- name: Run Tests 👩🏽🔬
|
27
|
+
task:
|
28
|
+
secrets:
|
29
|
+
- name: codecov-workos-ruby
|
30
|
+
jobs:
|
31
|
+
- name: Ruby 1.9.3
|
32
|
+
commands:
|
33
|
+
- checkout
|
34
|
+
- sem-version ruby 1.9.3
|
35
|
+
- bundle install
|
36
|
+
- bundle exec rspec
|
37
|
+
- name: Ruby 2.0.0
|
38
|
+
commands:
|
39
|
+
- checkout
|
40
|
+
- sem-version ruby 2.0.0
|
41
|
+
- bundle install
|
42
|
+
- bundle exec rspec
|
43
|
+
- name: Ruby 2.3.4
|
44
|
+
commands:
|
45
|
+
- checkout
|
46
|
+
- sem-version ruby 2.3.4
|
47
|
+
- bundle install
|
48
|
+
- bundle exec rspec
|
49
|
+
- name: Ruby 2.5.7
|
50
|
+
commands:
|
51
|
+
- checkout
|
52
|
+
- sem-version ruby 2.5.7
|
53
|
+
- bundle install
|
54
|
+
- bundle exec rspec
|
55
|
+
- name: Ruby 2.6.5
|
56
|
+
commands:
|
57
|
+
- checkout
|
58
|
+
- sem-version ruby 2.6.5
|
59
|
+
- bundle install
|
60
|
+
- bundle exec rspec
|
61
|
+
promotions:
|
62
|
+
- name: Deploy workos-rb to rubygems
|
63
|
+
pipeline_file: rubygems.yml
|
data/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@marktran @sbauch
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
workos (0.0.1)
|
5
|
+
rack (~> 1.6.4)
|
6
|
+
sorbet-runtime
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
ast (2.4.0)
|
14
|
+
codecov (0.1.16)
|
15
|
+
json
|
16
|
+
simplecov
|
17
|
+
url
|
18
|
+
crack (0.4.3)
|
19
|
+
safe_yaml (~> 1.0.0)
|
20
|
+
diff-lcs (1.3)
|
21
|
+
docile (1.3.2)
|
22
|
+
hashdiff (1.0.0)
|
23
|
+
jaro_winkler (1.5.4)
|
24
|
+
json (2.2.0)
|
25
|
+
parallel (1.19.1)
|
26
|
+
parser (2.6.5.0)
|
27
|
+
ast (~> 2.4.0)
|
28
|
+
public_suffix (4.0.1)
|
29
|
+
rack (1.6.11)
|
30
|
+
rainbow (3.0.0)
|
31
|
+
rake (13.0.1)
|
32
|
+
rspec (3.9.0)
|
33
|
+
rspec-core (~> 3.9.0)
|
34
|
+
rspec-expectations (~> 3.9.0)
|
35
|
+
rspec-mocks (~> 3.9.0)
|
36
|
+
rspec-core (3.9.0)
|
37
|
+
rspec-support (~> 3.9.0)
|
38
|
+
rspec-expectations (3.9.0)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.9.0)
|
41
|
+
rspec-mocks (3.9.0)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.9.0)
|
44
|
+
rspec-support (3.9.0)
|
45
|
+
rubocop (0.77.0)
|
46
|
+
jaro_winkler (~> 1.5.1)
|
47
|
+
parallel (~> 1.10)
|
48
|
+
parser (>= 2.6)
|
49
|
+
rainbow (>= 2.2.2, < 4.0)
|
50
|
+
ruby-progressbar (~> 1.7)
|
51
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
52
|
+
ruby-progressbar (1.10.1)
|
53
|
+
safe_yaml (1.0.5)
|
54
|
+
simplecov (0.17.1)
|
55
|
+
docile (~> 1.1)
|
56
|
+
json (>= 1.8, < 3)
|
57
|
+
simplecov-html (~> 0.10.0)
|
58
|
+
simplecov-html (0.10.2)
|
59
|
+
sorbet (0.4.5135)
|
60
|
+
sorbet-static (= 0.4.5135)
|
61
|
+
sorbet-runtime (0.4.5136)
|
62
|
+
sorbet-static (0.4.5135-universal-darwin-14)
|
63
|
+
unicode-display_width (1.6.0)
|
64
|
+
url (0.3.2)
|
65
|
+
webmock (3.7.6)
|
66
|
+
addressable (>= 2.3.6)
|
67
|
+
crack (>= 0.3.2)
|
68
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
69
|
+
|
70
|
+
PLATFORMS
|
71
|
+
ruby
|
72
|
+
|
73
|
+
DEPENDENCIES
|
74
|
+
bundler (~> 2.0.1)
|
75
|
+
codecov (~> 0.1.16)
|
76
|
+
rake
|
77
|
+
rspec (~> 3.9.0)
|
78
|
+
rubocop (~> 0.77)
|
79
|
+
sorbet
|
80
|
+
webmock
|
81
|
+
workos!
|
82
|
+
|
83
|
+
BUNDLED WITH
|
84
|
+
2.0.2
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 WorkOS
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# workos-rb
|
2
|
+
WorkOS official Ruby gem for interacting with WorkOS APIs
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
You don't need this source code unless you want to modify the gem. If you just
|
7
|
+
want to use the package, just run:
|
8
|
+
|
9
|
+
```sh
|
10
|
+
gem install workos
|
11
|
+
```
|
12
|
+
|
13
|
+
If you want to build the gem from source:
|
14
|
+
|
15
|
+
```sh
|
16
|
+
gem build workos.gemspec
|
17
|
+
```
|
18
|
+
|
19
|
+
### Requirements
|
20
|
+
|
21
|
+
- Ruby 2.3+.
|
data/bin/build
ADDED
data/bin/console
ADDED
data/bin/docs
ADDED
data/bin/publish
ADDED
data/codecov.yml
ADDED
data/docs/WorkOS.html
ADDED
@@ -0,0 +1,328 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: WorkOS
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "WorkOS";
|
19
|
+
relpath = '';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="_index.html">Index (W)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">WorkOS</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: WorkOS
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/workos.rb<span class="defines">,<br />
|
82
|
+
lib/workos/sso.rb,<br /> lib/workos/base.rb,<br /> lib/workos/types.rb,<br /> lib/workos/profile.rb,<br /> lib/workos/version.rb,<br /> lib/workos/request_error.rb,<br /> lib/workos/types/profile_struct.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Overview</h2><div class="docstring">
|
89
|
+
<div class="discussion">
|
90
|
+
|
91
|
+
<p>Use the WorkOS module to authenticate your requests to the WorkOS API. The
|
92
|
+
gem will read your API key automatically from the ENV var `WORKOS_KEY`.
|
93
|
+
Alternatively, you can set the key yourself with `WorkOS.key = [your api
|
94
|
+
key]` somewhere in the load path of your application, such as an
|
95
|
+
initializer.</p>
|
96
|
+
|
97
|
+
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
<div class="tags">
|
101
|
+
|
102
|
+
|
103
|
+
</div><h2>Defined Under Namespace</h2>
|
104
|
+
<p class="children">
|
105
|
+
|
106
|
+
|
107
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="WorkOS/SSO.html" title="WorkOS::SSO (module)">SSO</a></span>, <span class='object_link'><a href="WorkOS/Types.html" title="WorkOS::Types (module)">Types</a></span>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="WorkOS/Base.html" title="WorkOS::Base (class)">Base</a></span>, <span class='object_link'><a href="WorkOS/Profile.html" title="WorkOS::Profile (class)">Profile</a></span>, <span class='object_link'><a href="WorkOS/RequestError.html" title="WorkOS::RequestError (class)">RequestError</a></span>
|
112
|
+
|
113
|
+
|
114
|
+
</p>
|
115
|
+
|
116
|
+
|
117
|
+
<h2>
|
118
|
+
Constant Summary
|
119
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
120
|
+
</h2>
|
121
|
+
|
122
|
+
<dl class="constants">
|
123
|
+
|
124
|
+
<dt id="API_HOSTNAME-constant" class="">API_HOSTNAME =
|
125
|
+
|
126
|
+
</dt>
|
127
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>api.workos.com</span><span class='tstring_end'>'</span></span></pre></dd>
|
128
|
+
|
129
|
+
<dt id="VERSION-constant" class="">VERSION =
|
130
|
+
|
131
|
+
</dt>
|
132
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>'</span></span></pre></dd>
|
133
|
+
|
134
|
+
</dl>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<h2>
|
145
|
+
Class Method Summary
|
146
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
147
|
+
</h2>
|
148
|
+
|
149
|
+
<ul class="summary">
|
150
|
+
|
151
|
+
<li class="public ">
|
152
|
+
<span class="summary_signature">
|
153
|
+
|
154
|
+
<a href="#key-class_method" title="key (class method)">.<strong>key</strong> ⇒ Object </a>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
</span>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
169
|
+
|
170
|
+
</li>
|
171
|
+
|
172
|
+
|
173
|
+
<li class="public ">
|
174
|
+
<span class="summary_signature">
|
175
|
+
|
176
|
+
<a href="#key!-class_method" title="key! (class method)">.<strong>key!</strong> ⇒ Object </a>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
</span>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
191
|
+
|
192
|
+
</li>
|
193
|
+
|
194
|
+
|
195
|
+
<li class="public ">
|
196
|
+
<span class="summary_signature">
|
197
|
+
|
198
|
+
<a href="#key=-class_method" title="key= (class method)">.<strong>key=</strong>(value) ⇒ Object </a>
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</span>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
213
|
+
|
214
|
+
</li>
|
215
|
+
|
216
|
+
|
217
|
+
</ul>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
<div id="class_method_details" class="method_details_list">
|
223
|
+
<h2>Class Method Details</h2>
|
224
|
+
|
225
|
+
|
226
|
+
<div class="method_details first">
|
227
|
+
<h3 class="signature first" id="key-class_method">
|
228
|
+
|
229
|
+
.<strong>key</strong> ⇒ <tt>Object</tt>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
</h3><table class="source_code">
|
236
|
+
<tr>
|
237
|
+
<td>
|
238
|
+
<pre class="lines">
|
239
|
+
|
240
|
+
|
241
|
+
21
|
242
|
+
22
|
243
|
+
23</pre>
|
244
|
+
</td>
|
245
|
+
<td>
|
246
|
+
<pre class="code"><span class="info file"># File 'lib/workos.rb', line 21</span>
|
247
|
+
|
248
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span>
|
249
|
+
<span class='const'><span class='object_link'><a href="WorkOS/Base.html" title="WorkOS::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_key'><span class='object_link'><a href="WorkOS/Base.html#key-class_method" title="WorkOS::Base.key (method)">key</a></span></span>
|
250
|
+
<span class='kw'>end</span></pre>
|
251
|
+
</td>
|
252
|
+
</tr>
|
253
|
+
</table>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div class="method_details ">
|
257
|
+
<h3 class="signature " id="key!-class_method">
|
258
|
+
|
259
|
+
.<strong>key!</strong> ⇒ <tt>Object</tt>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
</h3><table class="source_code">
|
266
|
+
<tr>
|
267
|
+
<td>
|
268
|
+
<pre class="lines">
|
269
|
+
|
270
|
+
|
271
|
+
25
|
272
|
+
26
|
273
|
+
27</pre>
|
274
|
+
</td>
|
275
|
+
<td>
|
276
|
+
<pre class="code"><span class="info file"># File 'lib/workos.rb', line 25</span>
|
277
|
+
|
278
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key!'>key!</span>
|
279
|
+
<span class='id identifier rubyid_key'>key</span> <span class='op'>||</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>WorkOS.key not set</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
280
|
+
<span class='kw'>end</span></pre>
|
281
|
+
</td>
|
282
|
+
</tr>
|
283
|
+
</table>
|
284
|
+
</div>
|
285
|
+
|
286
|
+
<div class="method_details ">
|
287
|
+
<h3 class="signature " id="key=-class_method">
|
288
|
+
|
289
|
+
.<strong>key=</strong>(value) ⇒ <tt>Object</tt>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
</h3><table class="source_code">
|
296
|
+
<tr>
|
297
|
+
<td>
|
298
|
+
<pre class="lines">
|
299
|
+
|
300
|
+
|
301
|
+
17
|
302
|
+
18
|
303
|
+
19</pre>
|
304
|
+
</td>
|
305
|
+
<td>
|
306
|
+
<pre class="code"><span class="info file"># File 'lib/workos.rb', line 17</span>
|
307
|
+
|
308
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_key='>key=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
309
|
+
<span class='const'><span class='object_link'><a href="WorkOS/Base.html" title="WorkOS::Base (class)">Base</a></span></span><span class='period'>.</span><span class='id identifier rubyid_key'><span class='object_link'><a href="WorkOS/Base.html#key-class_method" title="WorkOS::Base.key (method)">key</a></span></span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
310
|
+
<span class='kw'>end</span></pre>
|
311
|
+
</td>
|
312
|
+
</tr>
|
313
|
+
</table>
|
314
|
+
</div>
|
315
|
+
|
316
|
+
</div>
|
317
|
+
|
318
|
+
</div>
|
319
|
+
|
320
|
+
<div id="footer">
|
321
|
+
Generated on Thu Dec 12 17:06:04 2019 by
|
322
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
323
|
+
0.9.20 (ruby-2.4.9).
|
324
|
+
</div>
|
325
|
+
|
326
|
+
</div>
|
327
|
+
</body>
|
328
|
+
</html>
|