seven_api 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.idea/ruby-client.iml +16 -4
- data/README.md +2 -2
- data/doc/{Sms77 → SevenApi}/Client.html +222 -222
- data/doc/{Sms77 → SevenApi}/Contacts/Action.html +130 -130
- data/doc/{Sms77 → SevenApi}/Contacts.html +125 -125
- data/doc/{Sms77 → SevenApi}/Endpoint.html +186 -186
- data/doc/{Sms77 → SevenApi}/Hooks/Action.html +130 -130
- data/doc/{Sms77 → SevenApi}/Hooks/EventType.html +145 -145
- data/doc/{Sms77 → SevenApi}/Hooks/RequestMethod.html +130 -130
- data/doc/{Sms77 → SevenApi}/Hooks/Validator.html +582 -582
- data/doc/{Sms77 → SevenApi}/Hooks.html +125 -125
- data/doc/{Sms77 → SevenApi}/Journal/Type.html +135 -135
- data/doc/{Sms77 → SevenApi}/Journal/Validator.html +380 -380
- data/doc/{Sms77 → SevenApi}/Journal.html +125 -125
- data/doc/{Sms77 → SevenApi}/Lookup/Type.html +135 -135
- data/doc/{Sms77 → SevenApi}/Lookup.html +125 -125
- data/doc/{Sms77 → SevenApi}/Resource.html +857 -857
- data/doc/{Sms77 → SevenApi}/Resources/Analytics.html +260 -260
- data/doc/{Sms77 → SevenApi}/Resources/Balance.html +243 -243
- data/doc/{Sms77 → SevenApi}/Resources/Contacts.html +445 -445
- data/doc/{Sms77 → SevenApi}/Resources/Hooks.html +453 -453
- data/doc/{Sms77 → SevenApi}/Resources/Journal.html +258 -258
- data/doc/{Sms77 → SevenApi}/Resources/Lookup.html +535 -535
- data/doc/{Sms77 → SevenApi}/Resources/Pricing.html +260 -260
- data/doc/{Sms77 → SevenApi}/Resources/Sms.html +258 -258
- data/doc/{Sms77 → SevenApi}/Resources/Status.html +258 -258
- data/doc/{Sms77 → SevenApi}/Resources/Subaccounts.html +645 -645
- data/doc/{Sms77 → SevenApi}/Resources/ValidateForVoice.html +258 -258
- data/doc/{Sms77 → SevenApi}/Resources/Voice.html +258 -258
- data/doc/SevenApi/Resources.html +128 -0
- data/doc/{Sms77 → SevenApi}/Sms/Type.html +125 -125
- data/doc/{Sms77 → SevenApi}/Sms.html +125 -125
- data/doc/{Sms77 → SevenApi}/Subaccounts/Action.html +140 -140
- data/doc/SevenApi/Subaccounts/Validator.html +490 -0
- data/doc/{Sms77 → SevenApi}/Subaccounts.html +125 -125
- data/doc/{Sms77 → SevenApi}/Util.html +993 -993
- data/doc/{Sms77.html → SevenApi.html} +145 -145
- data/doc/_index.html +443 -443
- data/doc/class_list.html +51 -51
- data/doc/css/full_list.css +58 -58
- data/doc/css/style.css +497 -497
- data/doc/file.README.html +110 -111
- data/doc/file_list.html +56 -56
- data/doc/frames.html +17 -17
- data/doc/index.html +110 -111
- data/doc/js/app.js +314 -314
- data/doc/js/full_list.js +216 -216
- data/doc/js/jquery.js +3 -3
- data/doc/method_list.html +563 -563
- data/doc/top-level-namespace.html +109 -109
- data/lib/seven_api/client.rb +2 -0
- data/lib/seven_api/contacts.rb +0 -5
- data/lib/seven_api/endpoint.rb +5 -0
- data/lib/seven_api/hooks.rb +1 -0
- data/lib/seven_api/lookup.rb +1 -0
- data/lib/seven_api/numbers.rb +9 -0
- data/lib/seven_api/paginated.rb +10 -0
- data/lib/seven_api/rcs.rb +9 -0
- data/lib/seven_api/resource.rb +8 -3
- data/lib/seven_api/resources/analytics.rb +38 -5
- data/lib/seven_api/resources/balance.rb +2 -2
- data/lib/seven_api/resources/contacts.rb +36 -18
- data/lib/seven_api/resources/groups.rb +57 -0
- data/lib/seven_api/resources/hooks.rb +1 -1
- data/lib/seven_api/resources/journal.rb +1 -1
- data/lib/seven_api/resources/lookup.rb +36 -20
- data/lib/seven_api/resources/numbers.rb +70 -0
- data/lib/seven_api/resources/pricing.rb +1 -1
- data/lib/seven_api/resources/rcs.rb +39 -0
- data/lib/seven_api/resources/sms.rb +1 -1
- data/lib/seven_api/resources/status.rb +1 -1
- data/lib/seven_api/resources/subaccounts.rb +5 -5
- data/lib/seven_api/resources/validate_for_voice.rb +1 -1
- data/lib/seven_api/resources/voice.rb +1 -1
- data/lib/seven_api/version.rb +1 -1
- data/seven_api.gemspec +5 -5
- data/spec/seven_api/analytics_spec.rb +49 -0
- data/spec/seven_api/balance_spec.rb +8 -2
- data/spec/seven_api/contacts_spec.rb +52 -81
- data/spec/seven_api/groups_spec.rb +74 -0
- data/spec/seven_api/lookup_spec.rb +51 -33
- data/spec/seven_api/numbers_spec.rb +135 -0
- data/spec/seven_api/rcs_spec.rb +99 -0
- data/spec/seven_api/sms_spec.rb +2 -2
- data/spec/seven_api/voice_spec.rb +2 -2
- data/spec/spec_helper.rb +8 -17
- metadata +64 -50
- data/doc/Sms77/Resources.html +0 -128
- data/doc/Sms77/Subaccounts/Validator.html +0 -490
@@ -1,394 +1,394 @@
|
|
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:
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "
|
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 (V)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../
|
41
|
-
»
|
42
|
-
<span class="title">Validator</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:
|
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/
|
82
|
-
</dl>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
<h2>
|
95
|
-
Class Method Summary
|
96
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
97
|
-
</h2>
|
98
|
-
|
99
|
-
<ul class="summary">
|
100
|
-
|
101
|
-
<li class="public ">
|
102
|
-
<span class="summary_signature">
|
103
|
-
|
104
|
-
<a href="#is_date%3F-class_method" title="is_date? (class method)">.<strong>is_date?</strong>(date) ⇒ Boolean </a>
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
</span>
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
119
|
-
|
120
|
-
</li>
|
121
|
-
|
122
|
-
|
123
|
-
<li class="public ">
|
124
|
-
<span class="summary_signature">
|
125
|
-
|
126
|
-
<a href="#is_type%3F-class_method" title="is_type? (class method)">.<strong>is_type?</strong>(str) ⇒ Boolean </a>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
</span>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
141
|
-
|
142
|
-
</li>
|
143
|
-
|
144
|
-
|
145
|
-
<li class="public ">
|
146
|
-
<span class="summary_signature">
|
147
|
-
|
148
|
-
<a href="#subscribe-class_method" title="subscribe (class method)">.<strong>subscribe</strong>(params) ⇒ Object </a>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
</span>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
163
|
-
|
164
|
-
</li>
|
165
|
-
|
166
|
-
|
167
|
-
<li class="public ">
|
168
|
-
<span class="summary_signature">
|
169
|
-
|
170
|
-
<a href="#validate-class_method" title="validate (class method)">.<strong>validate</strong>(params) ⇒ Object </a>
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
</span>
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
185
|
-
|
186
|
-
</li>
|
187
|
-
|
188
|
-
|
189
|
-
</ul>
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
<div id="class_method_details" class="method_details_list">
|
195
|
-
<h2>Class Method Details</h2>
|
196
|
-
|
197
|
-
|
198
|
-
<div class="method_details first">
|
199
|
-
<h3 class="signature first" id="is_date?-class_method">
|
200
|
-
|
201
|
-
.<strong>is_date?</strong>(date) ⇒ <tt>Boolean</tt>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
</h3><div class="docstring">
|
208
|
-
<div class="discussion">
|
209
|
-
|
210
|
-
|
211
|
-
</div>
|
212
|
-
</div>
|
213
|
-
<div class="tags">
|
214
|
-
|
215
|
-
<p class="tag_title">Returns:</p>
|
216
|
-
<ul class="return">
|
217
|
-
|
218
|
-
<li>
|
219
|
-
|
220
|
-
|
221
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
</li>
|
226
|
-
|
227
|
-
</ul>
|
228
|
-
|
229
|
-
</div><table class="source_code">
|
230
|
-
<tr>
|
231
|
-
<td>
|
232
|
-
<pre class="lines">
|
233
|
-
|
234
|
-
|
235
|
-
35
|
236
|
-
36
|
237
|
-
37</pre>
|
238
|
-
</td>
|
239
|
-
<td>
|
240
|
-
<pre class="code"><span class="info file"># File 'lib/
|
241
|
-
|
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: SevenApi::Journal::Validator
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.34
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "SevenApi::Journal::Validator";
|
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 (V)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span> » <span class='title'><span class='object_link'><a href="../Journal.html" title="SevenApi::Journal (module)">Journal</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Validator</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: SevenApi::Journal::Validator
|
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/seven_api/journal.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<h2>
|
95
|
+
Class Method Summary
|
96
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
97
|
+
</h2>
|
98
|
+
|
99
|
+
<ul class="summary">
|
100
|
+
|
101
|
+
<li class="public ">
|
102
|
+
<span class="summary_signature">
|
103
|
+
|
104
|
+
<a href="#is_date%3F-class_method" title="is_date? (class method)">.<strong>is_date?</strong>(date) ⇒ Boolean </a>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
</span>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
119
|
+
|
120
|
+
</li>
|
121
|
+
|
122
|
+
|
123
|
+
<li class="public ">
|
124
|
+
<span class="summary_signature">
|
125
|
+
|
126
|
+
<a href="#is_type%3F-class_method" title="is_type? (class method)">.<strong>is_type?</strong>(str) ⇒ Boolean </a>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
</span>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
141
|
+
|
142
|
+
</li>
|
143
|
+
|
144
|
+
|
145
|
+
<li class="public ">
|
146
|
+
<span class="summary_signature">
|
147
|
+
|
148
|
+
<a href="#subscribe-class_method" title="subscribe (class method)">.<strong>subscribe</strong>(params) ⇒ Object </a>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
</span>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#validate-class_method" title="validate (class method)">.<strong>validate</strong>(params) ⇒ Object </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
185
|
+
|
186
|
+
</li>
|
187
|
+
|
188
|
+
|
189
|
+
</ul>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
<div id="class_method_details" class="method_details_list">
|
195
|
+
<h2>Class Method Details</h2>
|
196
|
+
|
197
|
+
|
198
|
+
<div class="method_details first">
|
199
|
+
<h3 class="signature first" id="is_date?-class_method">
|
200
|
+
|
201
|
+
.<strong>is_date?</strong>(date) ⇒ <tt>Boolean</tt>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</h3><div class="docstring">
|
208
|
+
<div class="discussion">
|
209
|
+
|
210
|
+
|
211
|
+
</div>
|
212
|
+
</div>
|
213
|
+
<div class="tags">
|
214
|
+
|
215
|
+
<p class="tag_title">Returns:</p>
|
216
|
+
<ul class="return">
|
217
|
+
|
218
|
+
<li>
|
219
|
+
|
220
|
+
|
221
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</li>
|
226
|
+
|
227
|
+
</ul>
|
228
|
+
|
229
|
+
</div><table class="source_code">
|
230
|
+
<tr>
|
231
|
+
<td>
|
232
|
+
<pre class="lines">
|
233
|
+
|
234
|
+
|
235
|
+
35
|
236
|
+
36
|
237
|
+
37</pre>
|
238
|
+
</td>
|
239
|
+
<td>
|
240
|
+
<pre class="code"><span class="info file"># File 'lib/seven_api/journal.rb', line 35</span>
|
241
|
+
|
242
242
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_is_date?'>is_date?</span><span class='lparen'>(</span><span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
|
243
243
|
<span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>NilClass</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_date'>date</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>[\d]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][\d]|3[0-1])</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
|
244
|
-
<span class='kw'>end</span></pre>
|
245
|
-
</td>
|
246
|
-
</tr>
|
247
|
-
</table>
|
248
|
-
</div>
|
249
|
-
|
250
|
-
<div class="method_details ">
|
251
|
-
<h3 class="signature " id="is_type?-class_method">
|
252
|
-
|
253
|
-
.<strong>is_type?</strong>(str) ⇒ <tt>Boolean</tt>
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
</h3><div class="docstring">
|
260
|
-
<div class="discussion">
|
261
|
-
|
262
|
-
|
263
|
-
</div>
|
264
|
-
</div>
|
265
|
-
<div class="tags">
|
266
|
-
|
267
|
-
<p class="tag_title">Returns:</p>
|
268
|
-
<ul class="return">
|
269
|
-
|
270
|
-
<li>
|
271
|
-
|
272
|
-
|
273
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
</li>
|
278
|
-
|
279
|
-
</ul>
|
280
|
-
|
281
|
-
</div><table class="source_code">
|
282
|
-
<tr>
|
283
|
-
<td>
|
284
|
-
<pre class="lines">
|
285
|
-
|
286
|
-
|
287
|
-
31
|
288
|
-
32
|
289
|
-
33</pre>
|
290
|
-
</td>
|
291
|
-
<td>
|
292
|
-
<pre class="code"><span class="info file"># File 'lib/
|
293
|
-
|
244
|
+
<span class='kw'>end</span></pre>
|
245
|
+
</td>
|
246
|
+
</tr>
|
247
|
+
</table>
|
248
|
+
</div>
|
249
|
+
|
250
|
+
<div class="method_details ">
|
251
|
+
<h3 class="signature " id="is_type?-class_method">
|
252
|
+
|
253
|
+
.<strong>is_type?</strong>(str) ⇒ <tt>Boolean</tt>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</h3><div class="docstring">
|
260
|
+
<div class="discussion">
|
261
|
+
|
262
|
+
|
263
|
+
</div>
|
264
|
+
</div>
|
265
|
+
<div class="tags">
|
266
|
+
|
267
|
+
<p class="tag_title">Returns:</p>
|
268
|
+
<ul class="return">
|
269
|
+
|
270
|
+
<li>
|
271
|
+
|
272
|
+
|
273
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
</ul>
|
280
|
+
|
281
|
+
</div><table class="source_code">
|
282
|
+
<tr>
|
283
|
+
<td>
|
284
|
+
<pre class="lines">
|
285
|
+
|
286
|
+
|
287
|
+
31
|
288
|
+
32
|
289
|
+
33</pre>
|
290
|
+
</td>
|
291
|
+
<td>
|
292
|
+
<pre class="code"><span class="info file"># File 'lib/seven_api/journal.rb', line 31</span>
|
293
|
+
|
294
294
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_is_type?'>is_type?</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='rparen'>)</span>
|
295
|
-
<span class='const'><span class='object_link'><a href="../../
|
296
|
-
<span class='kw'>end</span></pre>
|
297
|
-
</td>
|
298
|
-
</tr>
|
299
|
-
</table>
|
300
|
-
</div>
|
301
|
-
|
302
|
-
<div class="method_details ">
|
303
|
-
<h3 class="signature " id="subscribe-class_method">
|
304
|
-
|
305
|
-
.<strong>subscribe</strong>(params) ⇒ <tt>Object</tt>
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
</h3><table class="source_code">
|
312
|
-
<tr>
|
313
|
-
<td>
|
314
|
-
<pre class="lines">
|
315
|
-
|
316
|
-
|
317
|
-
23
|
318
|
-
24
|
319
|
-
25
|
320
|
-
26
|
321
|
-
27
|
322
|
-
28
|
323
|
-
29</pre>
|
324
|
-
</td>
|
325
|
-
<td>
|
326
|
-
<pre class="code"><span class="info file"># File 'lib/
|
327
|
-
|
295
|
+
<span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Util.html" title="SevenApi::Util (module)">Util</a></span></span><span class='op'>::</span><span class='id identifier rubyid_in_module_constants?'><span class='object_link'><a href="../Util.html#in_module_constants%3F-class_method" title="SevenApi::Util.in_module_constants? (method)">in_module_constants?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Journal.html" title="SevenApi::Journal (module)">Journal</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Type.html" title="SevenApi::Journal::Type (module)">Type</a></span></span><span class='rparen'>)</span>
|
296
|
+
<span class='kw'>end</span></pre>
|
297
|
+
</td>
|
298
|
+
</tr>
|
299
|
+
</table>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
<div class="method_details ">
|
303
|
+
<h3 class="signature " id="subscribe-class_method">
|
304
|
+
|
305
|
+
.<strong>subscribe</strong>(params) ⇒ <tt>Object</tt>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</h3><table class="source_code">
|
312
|
+
<tr>
|
313
|
+
<td>
|
314
|
+
<pre class="lines">
|
315
|
+
|
316
|
+
|
317
|
+
23
|
318
|
+
24
|
319
|
+
25
|
320
|
+
26
|
321
|
+
27
|
322
|
+
28
|
323
|
+
29</pre>
|
324
|
+
</td>
|
325
|
+
<td>
|
326
|
+
<pre class="code"><span class="info file"># File 'lib/seven_api/journal.rb', line 23</span>
|
327
|
+
|
328
328
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_subscribe'>subscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
329
|
-
<span class='lbrace'>{</span> <span class='symbol'>:request_method</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../../
|
329
|
+
<span class='lbrace'>{</span> <span class='symbol'>:request_method</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks.html" title="SevenApi::Hooks (module)">Hooks</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/RequestMethod.html" title="SevenApi::Hooks::RequestMethod (module)">RequestMethod</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/RequestMethod.html#POST-constant" title="SevenApi::Hooks::RequestMethod::POST (constant)">POST</a></span></span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
330
330
|
|
331
331
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_event_type?'>event_type?</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:event_type</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>&&</span>
|
332
332
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_request_method?'>request_method?</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:request_method</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>&&</span>
|
333
333
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_target_url?'>target_url?</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:target_url</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
334
|
-
<span class='kw'>end</span></pre>
|
335
|
-
</td>
|
336
|
-
</tr>
|
337
|
-
</table>
|
338
|
-
</div>
|
339
|
-
|
340
|
-
<div class="method_details ">
|
341
|
-
<h3 class="signature " id="validate-class_method">
|
342
|
-
|
343
|
-
.<strong>validate</strong>(params) ⇒ <tt>Object</tt>
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
</h3><table class="source_code">
|
350
|
-
<tr>
|
351
|
-
<td>
|
352
|
-
<pre class="lines">
|
353
|
-
|
354
|
-
|
355
|
-
13
|
356
|
-
14
|
357
|
-
15
|
358
|
-
16
|
359
|
-
17
|
360
|
-
18
|
361
|
-
19
|
362
|
-
20
|
363
|
-
21</pre>
|
364
|
-
</td>
|
365
|
-
<td>
|
366
|
-
<pre class="code"><span class="info file"># File 'lib/
|
367
|
-
|
334
|
+
<span class='kw'>end</span></pre>
|
335
|
+
</td>
|
336
|
+
</tr>
|
337
|
+
</table>
|
338
|
+
</div>
|
339
|
+
|
340
|
+
<div class="method_details ">
|
341
|
+
<h3 class="signature " id="validate-class_method">
|
342
|
+
|
343
|
+
.<strong>validate</strong>(params) ⇒ <tt>Object</tt>
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
</h3><table class="source_code">
|
350
|
+
<tr>
|
351
|
+
<td>
|
352
|
+
<pre class="lines">
|
353
|
+
|
354
|
+
|
355
|
+
13
|
356
|
+
14
|
357
|
+
15
|
358
|
+
16
|
359
|
+
17
|
360
|
+
18
|
361
|
+
19
|
362
|
+
20
|
363
|
+
21</pre>
|
364
|
+
</td>
|
365
|
+
<td>
|
366
|
+
<pre class="code"><span class="info file"># File 'lib/seven_api/journal.rb', line 13</span>
|
367
|
+
|
368
368
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
369
369
|
<span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span>
|
370
370
|
<span class='id identifier rubyid_date_from'>date_from</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:date_from</span><span class='rbracket'>]</span>
|
371
371
|
<span class='id identifier rubyid_date_to'>date_to</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='symbol'>:date_to</span><span class='rbracket'>]</span>
|
372
372
|
|
373
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown type </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_type'>type</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="../../
|
374
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Wrong date_from </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_date_from'>date_from</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="../../
|
375
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Wrong date_to </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_date_to'>date_to</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="../../
|
376
|
-
<span class='kw'>end</span></pre>
|
377
|
-
</td>
|
378
|
-
</tr>
|
379
|
-
</table>
|
380
|
-
</div>
|
381
|
-
|
382
|
-
</div>
|
383
|
-
|
384
|
-
</div>
|
385
|
-
|
386
|
-
<div id="footer">
|
387
|
-
Generated on
|
388
|
-
<a href="
|
389
|
-
0.9.
|
390
|
-
</div>
|
391
|
-
|
392
|
-
</div>
|
393
|
-
</body>
|
373
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown type </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_type'>type</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Journal.html" title="SevenApi::Journal (module)">Journal</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="SevenApi::Journal::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_is_type?'><span class='object_link'><a href="#is_type%3F-class_method" title="SevenApi::Journal::Validator.is_type? (method)">is_type?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
374
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Wrong date_from </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_date_from'>date_from</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Journal.html" title="SevenApi::Journal (module)">Journal</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="SevenApi::Journal::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_is_date?'><span class='object_link'><a href="#is_date%3F-class_method" title="SevenApi::Journal::Validator.is_date? (method)">is_date?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_date_from'>date_from</span><span class='rparen'>)</span>
|
375
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Wrong date_to </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_date_to'>date_to</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Journal.html" title="SevenApi::Journal (module)">Journal</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="SevenApi::Journal::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_is_date?'><span class='object_link'><a href="#is_date%3F-class_method" title="SevenApi::Journal::Validator.is_date? (method)">is_date?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_date_to'>date_to</span><span class='rparen'>)</span>
|
376
|
+
<span class='kw'>end</span></pre>
|
377
|
+
</td>
|
378
|
+
</tr>
|
379
|
+
</table>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
</div>
|
383
|
+
|
384
|
+
</div>
|
385
|
+
|
386
|
+
<div id="footer">
|
387
|
+
Generated on Fri Aug 25 14:18:46 2023 by
|
388
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
389
|
+
0.9.34 (ruby-3.2.2).
|
390
|
+
</div>
|
391
|
+
|
392
|
+
</div>
|
393
|
+
</body>
|
394
394
|
</html>
|