sms77 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -4
- data/.idea/.gitignore +8 -0
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/.idea/modules.xml +8 -0
- data/.idea/ruby-client.iml +18 -0
- data/.idea/vcs.xml +6 -0
- data/Gemfile +2 -2
- data/LICENSE +20 -20
- data/README.md +41 -33
- data/Rakefile +5 -5
- data/doc/Sms77/Client.html +230 -0
- data/doc/Sms77/Contacts/Action.html +131 -0
- data/doc/Sms77/Contacts.html +126 -0
- data/doc/Sms77/Endpoint.html +187 -0
- data/doc/Sms77/Hooks/Action.html +131 -0
- data/doc/Sms77/Hooks/EventType.html +146 -0
- data/doc/Sms77/Hooks/RequestMethod.html +131 -0
- data/doc/Sms77/Hooks/Validator.html +598 -0
- data/doc/Sms77/Hooks.html +126 -0
- data/doc/Sms77/Journal/Type.html +136 -0
- data/doc/Sms77/Journal/Validator.html +394 -0
- data/doc/Sms77/Journal.html +126 -0
- data/doc/Sms77/Lookup/Type.html +136 -0
- data/doc/Sms77/Lookup.html +126 -0
- data/doc/Sms77/Resource.html +870 -0
- data/doc/Sms77/Resources/Analytics.html +263 -0
- data/doc/Sms77/Resources/Balance.html +246 -0
- data/doc/Sms77/Resources/Contacts.html +449 -0
- data/doc/Sms77/Resources/Hooks.html +457 -0
- data/doc/Sms77/Resources/Journal.html +261 -0
- data/doc/Sms77/Resources/Lookup.html +540 -0
- data/doc/Sms77/Resources/Pricing.html +263 -0
- data/doc/Sms77/Resources/Sms.html +261 -0
- data/doc/Sms77/Resources/Status.html +261 -0
- data/doc/Sms77/Resources/Subaccounts.html +651 -0
- data/doc/Sms77/Resources/ValidateForVoice.html +261 -0
- data/doc/Sms77/Resources/Voice.html +261 -0
- data/doc/Sms77/Resources.html +128 -0
- data/doc/Sms77/Sms/Type.html +126 -0
- data/doc/Sms77/Sms.html +126 -0
- data/doc/Sms77/Subaccounts/Action.html +141 -0
- data/doc/Sms77/Subaccounts/Validator.html +490 -0
- data/doc/Sms77/Subaccounts.html +126 -0
- data/doc/Sms77/Util.html +1033 -0
- data/doc/Sms77.html +146 -0
- data/doc/_index.html +444 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +497 -0
- data/doc/file.README.html +112 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +112 -0
- data/doc/js/app.js +314 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +563 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/sms77/client.rb +30 -29
- data/lib/sms77/contacts.rb +10 -9
- data/lib/sms77/endpoint.rb +17 -15
- data/lib/sms77/hooks.rb +67 -62
- data/lib/sms77/journal.rb +39 -38
- data/lib/sms77/lookup.rb +11 -10
- data/lib/sms77/resource.rb +94 -93
- data/lib/sms77/resources/analytics.rb +21 -16
- data/lib/sms77/resources/balance.rb +19 -15
- data/lib/sms77/resources/contacts.rb +38 -25
- data/lib/sms77/resources/hooks.rb +40 -29
- data/lib/sms77/resources/journal.rb +20 -15
- data/lib/sms77/resources/lookup.rb +47 -29
- data/lib/sms77/resources/pricing.rb +20 -15
- data/lib/sms77/resources/sms.rb +20 -15
- data/lib/sms77/resources/status.rb +20 -15
- data/lib/sms77/resources/subaccounts.rb +66 -0
- data/lib/sms77/resources/validate_for_voice.rb +20 -15
- data/lib/sms77/resources/voice.rb +20 -15
- data/lib/sms77/sms.rb +9 -8
- data/lib/sms77/subaccounts.rb +55 -0
- data/lib/sms77/util.rb +68 -67
- data/lib/sms77/version.rb +5 -5
- data/lib/sms77.rb +6 -6
- data/release.sh +5 -0
- data/sms77.gemspec +21 -21
- data/spec/EnvKeyStore.rb +14 -14
- data/spec/matchers.rb +22 -22
- data/spec/sms77/balance_spec.rb +12 -12
- data/spec/sms77/client_spec.rb +15 -15
- data/spec/sms77/contacts_spec.rb +129 -116
- data/spec/sms77/hooks_spec.rb +108 -105
- data/spec/sms77/instance_spec.rb +22 -20
- data/spec/sms77/journal_spec.rb +86 -86
- data/spec/sms77/lookup_spec.rb +179 -179
- data/spec/sms77/pricing_spec.rb +76 -76
- data/spec/sms77/sms_spec.rb +103 -103
- data/spec/sms77/subaccounts_spec.rb +121 -0
- data/spec/sms77/validate_for_voice_spec.rb +19 -19
- data/spec/sms77/voice_spec.rb +51 -51
- data/spec/sms77_spec.rb +9 -7
- data/spec/spec_helper.rb +53 -53
- metadata +75 -16
@@ -0,0 +1,457 @@
|
|
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
|
+
Class: Sms77::Resources::Hooks
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.27
|
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 = "Sms77::Resources::Hooks";
|
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 (H)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span> » <span class='title'><span class='object_link'><a href="../Resources.html" title="Sms77::Resources (module)">Resources</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Hooks</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>Class: Sms77::Resources::Hooks
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next"><span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></li>
|
78
|
+
|
79
|
+
<li class="next">Sms77::Resources::Hooks</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
83
|
+
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/sms77/resources/hooks.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<h2>Constant Summary</h2>
|
108
|
+
|
109
|
+
<h3 class="inherited">Constants inherited
|
110
|
+
from <span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></h3>
|
111
|
+
<p class="inherited"><span class='object_link'><a href="../Resource.html#BASE_PATH-constant" title="Sms77::Resource::BASE_PATH (constant)">Sms77::Resource::BASE_PATH</a></span></p>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
<h2>Instance Attribute Summary</h2>
|
117
|
+
|
118
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></h3>
|
119
|
+
<p class="inherited"><span class='object_link'><a href="../Resource.html#api_key-instance_method" title="Sms77::Resource#api_key (method)">#api_key</a></span>, <span class='object_link'><a href="../Resource.html#builder-instance_method" title="Sms77::Resource#builder (method)">#builder</a></span>, <span class='object_link'><a href="../Resource.html#conn-instance_method" title="Sms77::Resource#conn (method)">#conn</a></span>, <span class='object_link'><a href="../Resource.html#endpoint-instance_method" title="Sms77::Resource#endpoint (method)">#endpoint</a></span>, <span class='object_link'><a href="../Resource.html#http_methods-instance_method" title="Sms77::Resource#http_methods (method)">#http_methods</a></span>, <span class='object_link'><a href="../Resource.html#request_methods-instance_method" title="Sms77::Resource#request_methods (method)">#request_methods</a></span>, <span class='object_link'><a href="../Resource.html#sent_with-instance_method" title="Sms77::Resource#sent_with (method)">#sent_with</a></span></p>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>
|
124
|
+
Instance Method Summary
|
125
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
126
|
+
</h2>
|
127
|
+
|
128
|
+
<ul class="summary">
|
129
|
+
|
130
|
+
<li class="public ">
|
131
|
+
<span class="summary_signature">
|
132
|
+
|
133
|
+
<a href="#read-instance_method" title="#read (instance method)">#<strong>read</strong>(params = {}) ⇒ Hash </a>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<span class="summary_desc"><div class='inline'>
|
148
|
+
<p>Retrieve all webhooks.</p>
|
149
|
+
</div></span>
|
150
|
+
|
151
|
+
</li>
|
152
|
+
|
153
|
+
|
154
|
+
<li class="public ">
|
155
|
+
<span class="summary_signature">
|
156
|
+
|
157
|
+
<a href="#subscribe-instance_method" title="#subscribe (instance method)">#<strong>subscribe</strong>(params) ⇒ Hash </a>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
</span>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<span class="summary_desc"><div class='inline'>
|
172
|
+
<p>Register a new webhook.</p>
|
173
|
+
</div></span>
|
174
|
+
|
175
|
+
</li>
|
176
|
+
|
177
|
+
|
178
|
+
<li class="public ">
|
179
|
+
<span class="summary_signature">
|
180
|
+
|
181
|
+
<a href="#unsubscribe-instance_method" title="#unsubscribe (instance method)">#<strong>unsubscribe</strong>(params) ⇒ Hash </a>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
</span>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<span class="summary_desc"><div class='inline'>
|
196
|
+
<p>Delete a webhook.</p>
|
197
|
+
</div></span>
|
198
|
+
|
199
|
+
</li>
|
200
|
+
|
201
|
+
|
202
|
+
</ul>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></h3>
|
215
|
+
<p class="inherited"><span class='object_link'><a href="../Resource.html#get_endpoint-class_method" title="Sms77::Resource.get_endpoint (method)">get_endpoint</a></span>, <span class='object_link'><a href="../Resource.html#get_http_methods-class_method" title="Sms77::Resource.get_http_methods (method)">get_http_methods</a></span>, <span class='object_link'><a href="../Resource.html#initialize-instance_method" title="Sms77::Resource#initialize (method)">#initialize</a></span></p>
|
216
|
+
<div id="constructor_details" class="method_details_list">
|
217
|
+
<h2>Constructor Details</h2>
|
218
|
+
|
219
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Resource.html#initialize-instance_method" title="Sms77::Resource#initialize (method)">Sms77::Resource</a></span></p>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
<div id="instance_method_details" class="method_details_list">
|
225
|
+
<h2>Instance Method Details</h2>
|
226
|
+
|
227
|
+
|
228
|
+
<div class="method_details first">
|
229
|
+
<h3 class="signature first" id="read-instance_method">
|
230
|
+
|
231
|
+
#<strong>read</strong>(params = {}) ⇒ <tt>Hash</tt>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</h3><div class="docstring">
|
238
|
+
<div class="discussion">
|
239
|
+
|
240
|
+
<p>Retrieve all webhooks</p>
|
241
|
+
|
242
|
+
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
<div class="tags">
|
246
|
+
<p class="tag_title">Parameters:</p>
|
247
|
+
<ul class="param">
|
248
|
+
|
249
|
+
<li>
|
250
|
+
|
251
|
+
<span class='name'>params</span>
|
252
|
+
|
253
|
+
|
254
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
255
|
+
|
256
|
+
|
257
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
258
|
+
|
259
|
+
|
260
|
+
</li>
|
261
|
+
|
262
|
+
</ul>
|
263
|
+
|
264
|
+
<p class="tag_title">Returns:</p>
|
265
|
+
<ul class="return">
|
266
|
+
|
267
|
+
<li>
|
268
|
+
|
269
|
+
|
270
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
</li>
|
275
|
+
|
276
|
+
</ul>
|
277
|
+
|
278
|
+
</div><table class="source_code">
|
279
|
+
<tr>
|
280
|
+
<td>
|
281
|
+
<pre class="lines">
|
282
|
+
|
283
|
+
|
284
|
+
19
|
285
|
+
20
|
286
|
+
21</pre>
|
287
|
+
</td>
|
288
|
+
<td>
|
289
|
+
<pre class="code"><span class="info file"># File 'lib/sms77/resources/hooks.rb', line 19</span>
|
290
|
+
|
291
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
292
|
+
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks.html" title="Sms77::Hooks (module)">Hooks</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Action.html" title="Sms77::Hooks::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Action.html#READ-constant" title="Sms77::Hooks::Action::READ (constant)">READ</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
293
|
+
<span class='kw'>end</span></pre>
|
294
|
+
</td>
|
295
|
+
</tr>
|
296
|
+
</table>
|
297
|
+
</div>
|
298
|
+
|
299
|
+
<div class="method_details ">
|
300
|
+
<h3 class="signature " id="subscribe-instance_method">
|
301
|
+
|
302
|
+
#<strong>subscribe</strong>(params) ⇒ <tt>Hash</tt>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</h3><div class="docstring">
|
309
|
+
<div class="discussion">
|
310
|
+
|
311
|
+
<p>Register a new webhook</p>
|
312
|
+
|
313
|
+
|
314
|
+
</div>
|
315
|
+
</div>
|
316
|
+
<div class="tags">
|
317
|
+
<p class="tag_title">Parameters:</p>
|
318
|
+
<ul class="param">
|
319
|
+
|
320
|
+
<li>
|
321
|
+
|
322
|
+
<span class='name'>params</span>
|
323
|
+
|
324
|
+
|
325
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
</li>
|
330
|
+
|
331
|
+
</ul>
|
332
|
+
|
333
|
+
<p class="tag_title">Returns:</p>
|
334
|
+
<ul class="return">
|
335
|
+
|
336
|
+
<li>
|
337
|
+
|
338
|
+
|
339
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
</li>
|
344
|
+
|
345
|
+
</ul>
|
346
|
+
|
347
|
+
</div><table class="source_code">
|
348
|
+
<tr>
|
349
|
+
<td>
|
350
|
+
<pre class="lines">
|
351
|
+
|
352
|
+
|
353
|
+
26
|
354
|
+
27
|
355
|
+
28
|
356
|
+
29
|
357
|
+
30</pre>
|
358
|
+
</td>
|
359
|
+
<td>
|
360
|
+
<pre class="code"><span class="info file"># File 'lib/sms77/resources/hooks.rb', line 26</span>
|
361
|
+
|
362
|
+
<span class='kw'>def</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>
|
363
|
+
<span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks.html" title="Sms77::Hooks (module)">Hooks</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Validator.html" title="Sms77::Hooks::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_subscribe'><span class='object_link'><a href="../Hooks/Validator.html#subscribe-class_method" title="Sms77::Hooks::Validator.subscribe (method)">subscribe</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
364
|
+
|
365
|
+
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks.html" title="Sms77::Hooks (module)">Hooks</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Action.html" title="Sms77::Hooks::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Action.html#SUBSCRIBE-constant" title="Sms77::Hooks::Action::SUBSCRIBE (constant)">SUBSCRIBE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
366
|
+
<span class='kw'>end</span></pre>
|
367
|
+
</td>
|
368
|
+
</tr>
|
369
|
+
</table>
|
370
|
+
</div>
|
371
|
+
|
372
|
+
<div class="method_details ">
|
373
|
+
<h3 class="signature " id="unsubscribe-instance_method">
|
374
|
+
|
375
|
+
#<strong>unsubscribe</strong>(params) ⇒ <tt>Hash</tt>
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
</h3><div class="docstring">
|
382
|
+
<div class="discussion">
|
383
|
+
|
384
|
+
<p>Delete a webhook</p>
|
385
|
+
|
386
|
+
|
387
|
+
</div>
|
388
|
+
</div>
|
389
|
+
<div class="tags">
|
390
|
+
<p class="tag_title">Parameters:</p>
|
391
|
+
<ul class="param">
|
392
|
+
|
393
|
+
<li>
|
394
|
+
|
395
|
+
<span class='name'>params</span>
|
396
|
+
|
397
|
+
|
398
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
</li>
|
403
|
+
|
404
|
+
</ul>
|
405
|
+
|
406
|
+
<p class="tag_title">Returns:</p>
|
407
|
+
<ul class="return">
|
408
|
+
|
409
|
+
<li>
|
410
|
+
|
411
|
+
|
412
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
</li>
|
417
|
+
|
418
|
+
</ul>
|
419
|
+
|
420
|
+
</div><table class="source_code">
|
421
|
+
<tr>
|
422
|
+
<td>
|
423
|
+
<pre class="lines">
|
424
|
+
|
425
|
+
|
426
|
+
35
|
427
|
+
36
|
428
|
+
37
|
429
|
+
38
|
430
|
+
39</pre>
|
431
|
+
</td>
|
432
|
+
<td>
|
433
|
+
<pre class="code"><span class="info file"># File 'lib/sms77/resources/hooks.rb', line 35</span>
|
434
|
+
|
435
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_unsubscribe'>unsubscribe</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
436
|
+
<span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks.html" title="Sms77::Hooks (module)">Hooks</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Validator.html" title="Sms77::Hooks::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_unsubscribe'><span class='object_link'><a href="../Hooks/Validator.html#unsubscribe-class_method" title="Sms77::Hooks::Validator.unsubscribe (method)">unsubscribe</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
437
|
+
|
438
|
+
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=></span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks.html" title="Sms77::Hooks (module)">Hooks</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Action.html" title="Sms77::Hooks::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Hooks/Action.html#UNSUBSCRIBE-constant" title="Sms77::Hooks::Action::UNSUBSCRIBE (constant)">UNSUBSCRIBE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
439
|
+
<span class='kw'>end</span></pre>
|
440
|
+
</td>
|
441
|
+
</tr>
|
442
|
+
</table>
|
443
|
+
</div>
|
444
|
+
|
445
|
+
</div>
|
446
|
+
|
447
|
+
</div>
|
448
|
+
|
449
|
+
<div id="footer">
|
450
|
+
Generated on Wed Mar 30 13:55:36 2022 by
|
451
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
452
|
+
0.9.27 (ruby-2.7.4).
|
453
|
+
</div>
|
454
|
+
|
455
|
+
</div>
|
456
|
+
</body>
|
457
|
+
</html>
|