isimud 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +2 -0
  4. data/.ruby-version +1 -0
  5. data/.yardoc/checksums +15 -0
  6. data/.yardoc/object_types +0 -0
  7. data/.yardoc/objects/root.dat +0 -0
  8. data/.yardoc/proxy_types +0 -0
  9. data/Gemfile +23 -0
  10. data/Gemfile.lock +123 -0
  11. data/README.md +218 -0
  12. data/Rakefile +2 -0
  13. data/config.ru +7 -0
  14. data/config/tddium.yml +11 -0
  15. data/doc/Isimud.html +1696 -0
  16. data/doc/Isimud/BunnyClient.html +1004 -0
  17. data/doc/Isimud/Client.html +812 -0
  18. data/doc/Isimud/Event.html +1500 -0
  19. data/doc/Isimud/EventListener.html +1217 -0
  20. data/doc/Isimud/EventObserver.html +367 -0
  21. data/doc/Isimud/EventObserver/ClassMethods.html +292 -0
  22. data/doc/Isimud/Generators.html +117 -0
  23. data/doc/Isimud/Generators/ConfigGenerator.html +192 -0
  24. data/doc/Isimud/Generators/InitializerGenerator.html +192 -0
  25. data/doc/Isimud/Logging.html +230 -0
  26. data/doc/Isimud/ModelWatcher.html +312 -0
  27. data/doc/Isimud/ModelWatcher/ClassMethods.html +511 -0
  28. data/doc/Isimud/Railtie.html +123 -0
  29. data/doc/Isimud/TestClient.html +1003 -0
  30. data/doc/Isimud/TestClient/Queue.html +556 -0
  31. data/doc/_index.html +290 -0
  32. data/doc/class_list.html +58 -0
  33. data/doc/css/common.css +1 -0
  34. data/doc/css/full_list.css +57 -0
  35. data/doc/css/style.css +339 -0
  36. data/doc/file.README.html +338 -0
  37. data/doc/file_list.html +60 -0
  38. data/doc/frames.html +26 -0
  39. data/doc/index.html +338 -0
  40. data/doc/js/app.js +219 -0
  41. data/doc/js/full_list.js +181 -0
  42. data/doc/js/jquery.js +4 -0
  43. data/doc/method_list.html +711 -0
  44. data/doc/top-level-namespace.html +112 -0
  45. data/isimud.gemspec +25 -0
  46. data/lib/isimud.rb +91 -0
  47. data/lib/isimud/bunny_client.rb +95 -0
  48. data/lib/isimud/client.rb +48 -0
  49. data/lib/isimud/event.rb +112 -0
  50. data/lib/isimud/event_listener.rb +200 -0
  51. data/lib/isimud/event_observer.rb +81 -0
  52. data/lib/isimud/logging.rb +11 -0
  53. data/lib/isimud/model_watcher.rb +144 -0
  54. data/lib/isimud/railtie.rb +9 -0
  55. data/lib/isimud/tasks.rb +20 -0
  56. data/lib/isimud/test_client.rb +89 -0
  57. data/lib/isimud/version.rb +3 -0
  58. data/lib/rails/generators/isimud/config_generator.rb +12 -0
  59. data/lib/rails/generators/isimud/initializer_generator.rb +12 -0
  60. data/lib/rails/generators/isimud/templates/initializer.rb +17 -0
  61. data/lib/rails/generators/isimud/templates/isimud.yml +20 -0
  62. data/spec/internal/app/models/admin.rb +2 -0
  63. data/spec/internal/app/models/company.rb +34 -0
  64. data/spec/internal/app/models/user.rb +27 -0
  65. data/spec/internal/config/database.yml +3 -0
  66. data/spec/internal/config/routes.rb +3 -0
  67. data/spec/internal/db/schema.rb +22 -0
  68. data/spec/internal/log/.gitignore +1 -0
  69. data/spec/internal/public/favicon.ico +0 -0
  70. data/spec/isimud/bunny_client_spec.rb +125 -0
  71. data/spec/isimud/event_listener_spec.rb +86 -0
  72. data/spec/isimud/event_observer_spec.rb +32 -0
  73. data/spec/isimud/event_spec.rb +74 -0
  74. data/spec/isimud/model_watcher_spec.rb +189 -0
  75. data/spec/isimud/test_client_spec.rb +28 -0
  76. data/spec/isimud_spec.rb +49 -0
  77. data/spec/spec_helper.rb +55 -0
  78. metadata +195 -0
@@ -0,0 +1,1696 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Isimud
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
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
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!Isimud.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (I)</a> &raquo;
35
+
36
+
37
+ <span class="title">Isimud</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: Isimud
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+ <dt class="r1">Includes:</dt>
79
+ <dd class="r1">ActiveSupport::Configurable</dd>
80
+
81
+
82
+
83
+
84
+
85
+ <dt class="r2 last">Defined in:</dt>
86
+ <dd class="r2 last">lib/isimud/event_observer.rb<span class="defines">,<br />
87
+ lib/isimud.rb,<br /> lib/isimud/event.rb,<br /> lib/isimud/client.rb,<br /> lib/isimud/version.rb,<br /> lib/isimud/logging.rb,<br /> lib/isimud/railtie.rb,<br /> lib/isimud/test_client.rb,<br /> lib/isimud/bunny_client.rb,<br /> lib/isimud/model_watcher.rb,<br /> lib/isimud/event_listener.rb,<br /> lib/rails/generators/isimud/config_generator.rb,<br /> lib/rails/generators/isimud/initializer_generator.rb</span>
88
+ </dd>
89
+
90
+ </dl>
91
+ <div class="clear"></div>
92
+
93
+ <h2>Overview</h2><div class="docstring">
94
+ <div class="discussion">
95
+
96
+ <p>Module for attaching and listening to events</p>
97
+
98
+
99
+ </div>
100
+ </div>
101
+ <div class="tags">
102
+
103
+
104
+ </div><h2>Defined Under Namespace</h2>
105
+ <p class="children">
106
+
107
+
108
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Isimud/EventObserver.html" title="Isimud::EventObserver (module)">EventObserver</a></span>, <span class='object_link'><a href="Isimud/Generators.html" title="Isimud::Generators (module)">Generators</a></span>, <span class='object_link'><a href="Isimud/Logging.html" title="Isimud::Logging (module)">Logging</a></span>, <span class='object_link'><a href="Isimud/ModelWatcher.html" title="Isimud::ModelWatcher (module)">ModelWatcher</a></span>
109
+
110
+
111
+
112
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Isimud/BunnyClient.html" title="Isimud::BunnyClient (class)">BunnyClient</a></span>, <span class='object_link'><a href="Isimud/Client.html" title="Isimud::Client (class)">Client</a></span>, <span class='object_link'><a href="Isimud/Event.html" title="Isimud::Event (class)">Event</a></span>, <span class='object_link'><a href="Isimud/EventListener.html" title="Isimud::EventListener (class)">EventListener</a></span>, <span class='object_link'><a href="Isimud/Railtie.html" title="Isimud::Railtie (class)">Railtie</a></span>, <span class='object_link'><a href="Isimud/TestClient.html" title="Isimud::TestClient (class)">TestClient</a></span>
113
+
114
+
115
+ </p>
116
+
117
+ <h2>Constant Summary</h2>
118
+
119
+ <dl class="constants">
120
+
121
+ <dt id="VERSION-constant" class="">VERSION =
122
+
123
+ </dt>
124
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.4.2</span><span class='tstring_end'>&#39;</span></span></pre></dd>
125
+
126
+ </dl>
127
+
128
+
129
+
130
+
131
+
132
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
133
+ <ul class="summary">
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#client_options-instance_method" title="#client_options (instance method)">- (Hash) <strong>client_options</strong> </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+ <span class="note title readonly">readonly</span>
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <span class="summary_desc"><div class='inline'>
158
+ <p>Client specific options.</p>
159
+ </div></span>
160
+
161
+ </li>
162
+
163
+
164
+ <li class="public ">
165
+ <span class="summary_signature">
166
+
167
+ <a href="#client_type-instance_method" title="#client_type (instance method)">- (Enumerable&lt;&#39;bunny&#39;, &#39;test&#39;&gt;) <strong>client_type</strong> </a>
168
+
169
+
170
+
171
+ </span>
172
+
173
+
174
+
175
+
176
+ <span class="note title readonly">readonly</span>
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ <span class="summary_desc"><div class='inline'>
187
+ <p>Type of client to use.</p>
188
+ </div></span>
189
+
190
+ </li>
191
+
192
+
193
+ <li class="public ">
194
+ <span class="summary_signature">
195
+
196
+ <a href="#default_client-instance_method" title="#default_client (instance method)">- (Isimud::Client) <strong>default_client</strong> </a>
197
+
198
+
199
+
200
+ </span>
201
+
202
+
203
+
204
+
205
+ <span class="note title readonly">readonly</span>
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <span class="summary_desc"><div class='inline'>
216
+ <p>Default client.</p>
217
+ </div></span>
218
+
219
+ </li>
220
+
221
+
222
+ <li class="public ">
223
+ <span class="summary_signature">
224
+
225
+ <a href="#enable_model_watcher-instance_method" title="#enable_model_watcher (instance method)">- (Boolean) <strong>enable_model_watcher</strong> </a>
226
+
227
+
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+ <span class="note title readonly">readonly</span>
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+ <span class="summary_desc"><div class='inline'>
245
+ <p>When set, send Isimud::ModelWatcher messages.</p>
246
+ </div></span>
247
+
248
+ </li>
249
+
250
+
251
+ <li class="public ">
252
+ <span class="summary_signature">
253
+
254
+ <a href="#events_exchange-instance_method" title="#events_exchange (instance method)">- (String) <strong>events_exchange</strong> </a>
255
+
256
+
257
+
258
+ </span>
259
+
260
+
261
+
262
+
263
+ <span class="note title readonly">readonly</span>
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+ <span class="summary_desc"><div class='inline'>
274
+ <p>AMQP exchange used for publishing Event instances.</p>
275
+ </div></span>
276
+
277
+ </li>
278
+
279
+
280
+ <li class="public ">
281
+ <span class="summary_signature">
282
+
283
+ <a href="#listener_error_limit-instance_method" title="#listener_error_limit (instance method)">- (Integer) <strong>listener_error_limit</strong> </a>
284
+
285
+
286
+
287
+ </span>
288
+
289
+
290
+
291
+
292
+ <span class="note title readonly">readonly</span>
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <span class="summary_desc"><div class='inline'>
303
+ <p>Maximum number of exceptions allowed per hour before listener shuts down
304
+ (100).</p>
305
+ </div></span>
306
+
307
+ </li>
308
+
309
+
310
+ <li class="public ">
311
+ <span class="summary_signature">
312
+
313
+ <a href="#log_level-instance_method" title="#log_level (instance method)">- (Symbol) <strong>log_level</strong> </a>
314
+
315
+
316
+
317
+ </span>
318
+
319
+
320
+
321
+
322
+ <span class="note title readonly">readonly</span>
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+ <span class="summary_desc"><div class='inline'>
333
+ <p>Log level (:debug).</p>
334
+ </div></span>
335
+
336
+ </li>
337
+
338
+
339
+ <li class="public ">
340
+ <span class="summary_signature">
341
+
342
+ <a href="#logger-instance_method" title="#logger (instance method)">- (Logger) <strong>logger</strong> </a>
343
+
344
+
345
+
346
+ </span>
347
+
348
+
349
+
350
+
351
+ <span class="note title readonly">readonly</span>
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+ <span class="summary_desc"><div class='inline'>
362
+ <p>Logger for tracing messages (Rails.logger).</p>
363
+ </div></span>
364
+
365
+ </li>
366
+
367
+
368
+ <li class="public ">
369
+ <span class="summary_signature">
370
+
371
+ <a href="#model_watcher_exchange-instance_method" title="#model_watcher_exchange (instance method)">- (String) <strong>model_watcher_exchange</strong> </a>
372
+
373
+
374
+
375
+ </span>
376
+
377
+
378
+
379
+
380
+ <span class="note title readonly">readonly</span>
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+ <span class="summary_desc"><div class='inline'>
391
+ <p>AMQP exchange used for publishing ModelWatcher messages.</p>
392
+ </div></span>
393
+
394
+ </li>
395
+
396
+
397
+ <li class="public ">
398
+ <span class="summary_signature">
399
+
400
+ <a href="#model_watcher_schema-instance_method" title="#model_watcher_schema (instance method)">- (String) <strong>model_watcher_schema</strong> </a>
401
+
402
+
403
+
404
+ </span>
405
+
406
+
407
+
408
+
409
+ <span class="note title readonly">readonly</span>
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+ <span class="summary_desc"><div class='inline'>
420
+ <p>Schema name (<a
421
+ href="Rails.env">Rails.configuration.database_configuration</a>[&#39;database&#39;]).</p>
422
+ </div></span>
423
+
424
+ </li>
425
+
426
+
427
+ <li class="public ">
428
+ <span class="summary_signature">
429
+
430
+ <a href="#prefetch_count-instance_method" title="#prefetch_count (instance method)">- (Integer) <strong>prefetch_count</strong> </a>
431
+
432
+
433
+
434
+ </span>
435
+
436
+
437
+
438
+
439
+ <span class="note title readonly">readonly</span>
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+ <span class="summary_desc"><div class='inline'>
450
+ <p>Number of messages to fetch – only applies to BunnyClient.</p>
451
+ </div></span>
452
+
453
+ </li>
454
+
455
+
456
+ <li class="public ">
457
+ <span class="summary_signature">
458
+
459
+ <a href="#retry_failures-instance_method" title="#retry_failures (instance method)">- (Boolean) <strong>retry_failures</strong> </a>
460
+
461
+
462
+
463
+ </span>
464
+
465
+
466
+
467
+
468
+ <span class="note title readonly">readonly</span>
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+ <span class="summary_desc"><div class='inline'>
479
+ <p>When set, if an exception occurs during message processing, requeue it.</p>
480
+ </div></span>
481
+
482
+ </li>
483
+
484
+
485
+ <li class="public ">
486
+ <span class="summary_signature">
487
+
488
+ <a href="#server-instance_method" title="#server (instance method)">- (&lt;String, Hash&gt;) <strong>server</strong> </a>
489
+
490
+
491
+
492
+ </span>
493
+
494
+
495
+
496
+
497
+ <span class="note title readonly">readonly</span>
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+ <span class="summary_desc"><div class='inline'>
508
+ <p>Server connection attributes.</p>
509
+ </div></span>
510
+
511
+ </li>
512
+
513
+
514
+ </ul>
515
+
516
+
517
+
518
+
519
+
520
+ <h2>
521
+ Class Method Summary
522
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
523
+ </h2>
524
+
525
+ <ul class="summary">
526
+
527
+ <li class="public ">
528
+ <span class="summary_signature">
529
+
530
+ <a href="#client-class_method" title="client (class method)">+ (Isimud::Client) <strong>client</strong> </a>
531
+
532
+
533
+
534
+ </span>
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+ <span class="summary_desc"><div class='inline'>
545
+ <p>Fetch or initialize the messaging client for this process.</p>
546
+ </div></span>
547
+
548
+ </li>
549
+
550
+
551
+ <li class="public ">
552
+ <span class="summary_signature">
553
+
554
+ <a href="#client_class-class_method" title="client_class (class method)">+ (Object) <strong>client_class</strong> </a>
555
+
556
+
557
+
558
+ </span>
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+ <span class="summary_desc"><div class='inline'></div></span>
569
+
570
+ </li>
571
+
572
+
573
+ <li class="public ">
574
+ <span class="summary_signature">
575
+
576
+ <a href="#connect-class_method" title="connect (class method)">+ (Object) <strong>connect</strong> </a>
577
+
578
+
579
+
580
+ </span>
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+ <span class="summary_desc"><div class='inline'>
591
+ <p>Connect to the messaging server.</p>
592
+ </div></span>
593
+
594
+ </li>
595
+
596
+
597
+ <li class="public ">
598
+ <span class="summary_signature">
599
+
600
+ <a href="#model_watcher_enabled%3F-class_method" title="model_watcher_enabled? (class method)">+ (Boolean) <strong>model_watcher_enabled?</strong> </a>
601
+
602
+
603
+
604
+ </span>
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+ <span class="summary_desc"><div class='inline'>
615
+ <p>Return status of model watching mode.</p>
616
+ </div></span>
617
+
618
+ </li>
619
+
620
+
621
+ <li class="public ">
622
+ <span class="summary_signature">
623
+
624
+ <a href="#reconnect-class_method" title="reconnect (class method)">+ (Object) <strong>reconnect</strong> </a>
625
+
626
+
627
+
628
+ </span>
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+ <span class="summary_desc"><div class='inline'>
639
+ <p>Reconnect the messaging client.</p>
640
+ </div></span>
641
+
642
+ </li>
643
+
644
+
645
+ </ul>
646
+
647
+
648
+
649
+
650
+ <div id="instance_attr_details" class="attr_details">
651
+ <h2>Instance Attribute Details</h2>
652
+
653
+
654
+ <span id=""></span>
655
+ <div class="method_details first">
656
+ <h3 class="signature first" id="client_options-instance_method">
657
+
658
+ - (<tt>Hash</tt>) <strong>client_options</strong> <span class="extras">(readonly)</span>
659
+
660
+
661
+
662
+
663
+
664
+ </h3><div class="docstring">
665
+ <div class="discussion">
666
+
667
+ <p>Returns client specific options</p>
668
+
669
+
670
+ </div>
671
+ </div>
672
+ <div class="tags">
673
+
674
+ <p class="tag_title">Returns:</p>
675
+ <ul class="return">
676
+
677
+ <li>
678
+
679
+
680
+ <span class='type'>(<tt>Hash</tt>)</span>
681
+
682
+
683
+
684
+ &mdash;
685
+ <div class='inline'>
686
+ <p>client specific options</p>
687
+ </div>
688
+
689
+ </li>
690
+
691
+ </ul>
692
+
693
+ </div><table class="source_code">
694
+ <tr>
695
+ <td>
696
+ <pre class="lines">
697
+
698
+
699
+ 40
700
+ 41
701
+ 42</pre>
702
+ </td>
703
+ <td>
704
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
705
+
706
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
707
+ <span class='symbol'>:bunny</span>
708
+ <span class='kw'>end</span></pre>
709
+ </td>
710
+ </tr>
711
+ </table>
712
+ </div>
713
+
714
+
715
+ <span id=""></span>
716
+ <div class="method_details ">
717
+ <h3 class="signature " id="client_type-instance_method">
718
+
719
+ - (<tt>Enumerable&lt;'bunny', 'test'&gt;</tt>) <strong>client_type</strong> <span class="extras">(readonly)</span>
720
+
721
+
722
+
723
+
724
+
725
+ </h3><div class="docstring">
726
+ <div class="discussion">
727
+
728
+ <p>Returns Type of client to use</p>
729
+
730
+
731
+ </div>
732
+ </div>
733
+ <div class="tags">
734
+
735
+ <p class="tag_title">Returns:</p>
736
+ <ul class="return">
737
+
738
+ <li>
739
+
740
+
741
+ <span class='type'>(<tt>Enumerable&lt;'bunny', 'test'&gt;</tt>)</span>
742
+
743
+
744
+
745
+ &mdash;
746
+ <div class='inline'>
747
+ <p>Type of client to use</p>
748
+ </div>
749
+
750
+ </li>
751
+
752
+ </ul>
753
+
754
+ </div><table class="source_code">
755
+ <tr>
756
+ <td>
757
+ <pre class="lines">
758
+
759
+
760
+ 40
761
+ 41
762
+ 42</pre>
763
+ </td>
764
+ <td>
765
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
766
+
767
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
768
+ <span class='symbol'>:bunny</span>
769
+ <span class='kw'>end</span></pre>
770
+ </td>
771
+ </tr>
772
+ </table>
773
+ </div>
774
+
775
+
776
+ <span id=""></span>
777
+ <div class="method_details ">
778
+ <h3 class="signature " id="default_client-instance_method">
779
+
780
+ - (<tt><span class='object_link'><a href="Isimud/Client.html" title="Isimud::Client (class)">Isimud::Client</a></span></tt>) <strong>default_client</strong> <span class="extras">(readonly)</span>
781
+
782
+
783
+
784
+
785
+
786
+ </h3><div class="docstring">
787
+ <div class="discussion">
788
+
789
+ <p>Returns default client</p>
790
+
791
+
792
+ </div>
793
+ </div>
794
+ <div class="tags">
795
+
796
+ <p class="tag_title">Returns:</p>
797
+ <ul class="return">
798
+
799
+ <li>
800
+
801
+
802
+ <span class='type'>(<tt><span class='object_link'><a href="Isimud/Client.html" title="Isimud::Client (class)">Isimud::Client</a></span></tt>)</span>
803
+
804
+
805
+
806
+ &mdash;
807
+ <div class='inline'>
808
+ <p>default client</p>
809
+ </div>
810
+
811
+ </li>
812
+
813
+ </ul>
814
+
815
+ </div><table class="source_code">
816
+ <tr>
817
+ <td>
818
+ <pre class="lines">
819
+
820
+
821
+ 40
822
+ 41
823
+ 42</pre>
824
+ </td>
825
+ <td>
826
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
827
+
828
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
829
+ <span class='symbol'>:bunny</span>
830
+ <span class='kw'>end</span></pre>
831
+ </td>
832
+ </tr>
833
+ </table>
834
+ </div>
835
+
836
+
837
+ <span id=""></span>
838
+ <div class="method_details ">
839
+ <h3 class="signature " id="enable_model_watcher-instance_method">
840
+
841
+ - (<tt>Boolean</tt>) <strong>enable_model_watcher</strong> <span class="extras">(readonly)</span>
842
+
843
+
844
+
845
+
846
+
847
+ </h3><div class="docstring">
848
+ <div class="discussion">
849
+
850
+ <p>Returns when set, send Isimud::ModelWatcher messages</p>
851
+
852
+
853
+ </div>
854
+ </div>
855
+ <div class="tags">
856
+
857
+ <p class="tag_title">Returns:</p>
858
+ <ul class="return">
859
+
860
+ <li>
861
+
862
+
863
+ <span class='type'>(<tt>Boolean</tt>)</span>
864
+
865
+
866
+
867
+ &mdash;
868
+ <div class='inline'>
869
+ <p>when set, send Isimud::ModelWatcher messages</p>
870
+ </div>
871
+
872
+ </li>
873
+
874
+ </ul>
875
+
876
+ </div><table class="source_code">
877
+ <tr>
878
+ <td>
879
+ <pre class="lines">
880
+
881
+
882
+ 40
883
+ 41
884
+ 42</pre>
885
+ </td>
886
+ <td>
887
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
888
+
889
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
890
+ <span class='symbol'>:bunny</span>
891
+ <span class='kw'>end</span></pre>
892
+ </td>
893
+ </tr>
894
+ </table>
895
+ </div>
896
+
897
+
898
+ <span id=""></span>
899
+ <div class="method_details ">
900
+ <h3 class="signature " id="events_exchange-instance_method">
901
+
902
+ - (<tt>String</tt>) <strong>events_exchange</strong> <span class="extras">(readonly)</span>
903
+
904
+
905
+
906
+
907
+
908
+ </h3><div class="docstring">
909
+ <div class="discussion">
910
+
911
+ <p>Returns AMQP exchange used for publishing Event instances</p>
912
+
913
+
914
+ </div>
915
+ </div>
916
+ <div class="tags">
917
+
918
+ <p class="tag_title">Returns:</p>
919
+ <ul class="return">
920
+
921
+ <li>
922
+
923
+
924
+ <span class='type'>(<tt>String</tt>)</span>
925
+
926
+
927
+
928
+ &mdash;
929
+ <div class='inline'>
930
+ <p>AMQP exchange used for publishing Event instances</p>
931
+ </div>
932
+
933
+ </li>
934
+
935
+ </ul>
936
+
937
+ </div><table class="source_code">
938
+ <tr>
939
+ <td>
940
+ <pre class="lines">
941
+
942
+
943
+ 40
944
+ 41
945
+ 42</pre>
946
+ </td>
947
+ <td>
948
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
949
+
950
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
951
+ <span class='symbol'>:bunny</span>
952
+ <span class='kw'>end</span></pre>
953
+ </td>
954
+ </tr>
955
+ </table>
956
+ </div>
957
+
958
+
959
+ <span id=""></span>
960
+ <div class="method_details ">
961
+ <h3 class="signature " id="listener_error_limit-instance_method">
962
+
963
+ - (<tt>Integer</tt>) <strong>listener_error_limit</strong> <span class="extras">(readonly)</span>
964
+
965
+
966
+
967
+
968
+
969
+ </h3><div class="docstring">
970
+ <div class="discussion">
971
+
972
+ <p>Returns maximum number of exceptions allowed per hour before listener shuts
973
+ down (100)</p>
974
+
975
+
976
+ </div>
977
+ </div>
978
+ <div class="tags">
979
+
980
+ <p class="tag_title">Returns:</p>
981
+ <ul class="return">
982
+
983
+ <li>
984
+
985
+
986
+ <span class='type'>(<tt>Integer</tt>)</span>
987
+
988
+
989
+
990
+ &mdash;
991
+ <div class='inline'>
992
+ <p>maximum number of exceptions allowed per hour before listener shuts down
993
+ (100)</p>
994
+ </div>
995
+
996
+ </li>
997
+
998
+ </ul>
999
+
1000
+ </div><table class="source_code">
1001
+ <tr>
1002
+ <td>
1003
+ <pre class="lines">
1004
+
1005
+
1006
+ 40
1007
+ 41
1008
+ 42</pre>
1009
+ </td>
1010
+ <td>
1011
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1012
+
1013
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1014
+ <span class='symbol'>:bunny</span>
1015
+ <span class='kw'>end</span></pre>
1016
+ </td>
1017
+ </tr>
1018
+ </table>
1019
+ </div>
1020
+
1021
+
1022
+ <span id=""></span>
1023
+ <div class="method_details ">
1024
+ <h3 class="signature " id="log_level-instance_method">
1025
+
1026
+ - (<tt>Symbol</tt>) <strong>log_level</strong> <span class="extras">(readonly)</span>
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+ </h3><div class="docstring">
1033
+ <div class="discussion">
1034
+
1035
+ <p>Returns log level (:debug)</p>
1036
+
1037
+
1038
+ </div>
1039
+ </div>
1040
+ <div class="tags">
1041
+
1042
+ <p class="tag_title">Returns:</p>
1043
+ <ul class="return">
1044
+
1045
+ <li>
1046
+
1047
+
1048
+ <span class='type'>(<tt>Symbol</tt>)</span>
1049
+
1050
+
1051
+
1052
+ &mdash;
1053
+ <div class='inline'>
1054
+ <p>log level (:debug)</p>
1055
+ </div>
1056
+
1057
+ </li>
1058
+
1059
+ </ul>
1060
+
1061
+ </div><table class="source_code">
1062
+ <tr>
1063
+ <td>
1064
+ <pre class="lines">
1065
+
1066
+
1067
+ 40
1068
+ 41
1069
+ 42</pre>
1070
+ </td>
1071
+ <td>
1072
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1073
+
1074
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1075
+ <span class='symbol'>:bunny</span>
1076
+ <span class='kw'>end</span></pre>
1077
+ </td>
1078
+ </tr>
1079
+ </table>
1080
+ </div>
1081
+
1082
+
1083
+ <span id=""></span>
1084
+ <div class="method_details ">
1085
+ <h3 class="signature " id="logger-instance_method">
1086
+
1087
+ - (<tt>Logger</tt>) <strong>logger</strong> <span class="extras">(readonly)</span>
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+ </h3><div class="docstring">
1094
+ <div class="discussion">
1095
+
1096
+ <p>Returns logger for tracing messages (Rails.logger)</p>
1097
+
1098
+
1099
+ </div>
1100
+ </div>
1101
+ <div class="tags">
1102
+
1103
+ <p class="tag_title">Returns:</p>
1104
+ <ul class="return">
1105
+
1106
+ <li>
1107
+
1108
+
1109
+ <span class='type'>(<tt>Logger</tt>)</span>
1110
+
1111
+
1112
+
1113
+ &mdash;
1114
+ <div class='inline'>
1115
+ <p>logger for tracing messages (Rails.logger)</p>
1116
+ </div>
1117
+
1118
+ </li>
1119
+
1120
+ </ul>
1121
+
1122
+ </div><table class="source_code">
1123
+ <tr>
1124
+ <td>
1125
+ <pre class="lines">
1126
+
1127
+
1128
+ 40
1129
+ 41
1130
+ 42</pre>
1131
+ </td>
1132
+ <td>
1133
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1134
+
1135
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1136
+ <span class='symbol'>:bunny</span>
1137
+ <span class='kw'>end</span></pre>
1138
+ </td>
1139
+ </tr>
1140
+ </table>
1141
+ </div>
1142
+
1143
+
1144
+ <span id=""></span>
1145
+ <div class="method_details ">
1146
+ <h3 class="signature " id="model_watcher_exchange-instance_method">
1147
+
1148
+ - (<tt>String</tt>) <strong>model_watcher_exchange</strong> <span class="extras">(readonly)</span>
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+ </h3><div class="docstring">
1155
+ <div class="discussion">
1156
+
1157
+ <p>Returns AMQP exchange used for publishing ModelWatcher messages</p>
1158
+
1159
+
1160
+ </div>
1161
+ </div>
1162
+ <div class="tags">
1163
+
1164
+ <p class="tag_title">Returns:</p>
1165
+ <ul class="return">
1166
+
1167
+ <li>
1168
+
1169
+
1170
+ <span class='type'>(<tt>String</tt>)</span>
1171
+
1172
+
1173
+
1174
+ &mdash;
1175
+ <div class='inline'>
1176
+ <p>AMQP exchange used for publishing ModelWatcher messages</p>
1177
+ </div>
1178
+
1179
+ </li>
1180
+
1181
+ </ul>
1182
+
1183
+ </div><table class="source_code">
1184
+ <tr>
1185
+ <td>
1186
+ <pre class="lines">
1187
+
1188
+
1189
+ 40
1190
+ 41
1191
+ 42</pre>
1192
+ </td>
1193
+ <td>
1194
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1195
+
1196
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1197
+ <span class='symbol'>:bunny</span>
1198
+ <span class='kw'>end</span></pre>
1199
+ </td>
1200
+ </tr>
1201
+ </table>
1202
+ </div>
1203
+
1204
+
1205
+ <span id=""></span>
1206
+ <div class="method_details ">
1207
+ <h3 class="signature " id="model_watcher_schema-instance_method">
1208
+
1209
+ - (<tt>String</tt>) <strong>model_watcher_schema</strong> <span class="extras">(readonly)</span>
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+ </h3><div class="docstring">
1216
+ <div class="discussion">
1217
+
1218
+ <p>Returns schema name (<a
1219
+ href="Rails.env">Rails.configuration.database_configuration</a>[&#39;database&#39;])</p>
1220
+
1221
+
1222
+ </div>
1223
+ </div>
1224
+ <div class="tags">
1225
+
1226
+ <p class="tag_title">Returns:</p>
1227
+ <ul class="return">
1228
+
1229
+ <li>
1230
+
1231
+
1232
+ <span class='type'>(<tt>String</tt>)</span>
1233
+
1234
+
1235
+
1236
+ &mdash;
1237
+ <div class='inline'>
1238
+ <p>schema name (<a
1239
+ href="Rails.env">Rails.configuration.database_configuration</a>[&#39;database&#39;])</p>
1240
+ </div>
1241
+
1242
+ </li>
1243
+
1244
+ </ul>
1245
+
1246
+ </div><table class="source_code">
1247
+ <tr>
1248
+ <td>
1249
+ <pre class="lines">
1250
+
1251
+
1252
+ 40
1253
+ 41
1254
+ 42</pre>
1255
+ </td>
1256
+ <td>
1257
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1258
+
1259
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1260
+ <span class='symbol'>:bunny</span>
1261
+ <span class='kw'>end</span></pre>
1262
+ </td>
1263
+ </tr>
1264
+ </table>
1265
+ </div>
1266
+
1267
+
1268
+ <span id=""></span>
1269
+ <div class="method_details ">
1270
+ <h3 class="signature " id="prefetch_count-instance_method">
1271
+
1272
+ - (<tt>Integer</tt>) <strong>prefetch_count</strong> <span class="extras">(readonly)</span>
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ </h3><div class="docstring">
1279
+ <div class="discussion">
1280
+
1281
+ <p>Returns number of messages to fetch – only applies to BunnyClient</p>
1282
+
1283
+
1284
+ </div>
1285
+ </div>
1286
+ <div class="tags">
1287
+
1288
+ <p class="tag_title">Returns:</p>
1289
+ <ul class="return">
1290
+
1291
+ <li>
1292
+
1293
+
1294
+ <span class='type'>(<tt>Integer</tt>)</span>
1295
+
1296
+
1297
+
1298
+ &mdash;
1299
+ <div class='inline'>
1300
+ <p>number of messages to fetch – only applies to BunnyClient</p>
1301
+ </div>
1302
+
1303
+ </li>
1304
+
1305
+ </ul>
1306
+
1307
+ </div><table class="source_code">
1308
+ <tr>
1309
+ <td>
1310
+ <pre class="lines">
1311
+
1312
+
1313
+ 40
1314
+ 41
1315
+ 42</pre>
1316
+ </td>
1317
+ <td>
1318
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1319
+
1320
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1321
+ <span class='symbol'>:bunny</span>
1322
+ <span class='kw'>end</span></pre>
1323
+ </td>
1324
+ </tr>
1325
+ </table>
1326
+ </div>
1327
+
1328
+
1329
+ <span id=""></span>
1330
+ <div class="method_details ">
1331
+ <h3 class="signature " id="retry_failures-instance_method">
1332
+
1333
+ - (<tt>Boolean</tt>) <strong>retry_failures</strong> <span class="extras">(readonly)</span>
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+ </h3><div class="docstring">
1340
+ <div class="discussion">
1341
+
1342
+ <p>Returns when set, if an exception occurs during message processing, requeue
1343
+ it</p>
1344
+
1345
+
1346
+ </div>
1347
+ </div>
1348
+ <div class="tags">
1349
+
1350
+ <p class="tag_title">Returns:</p>
1351
+ <ul class="return">
1352
+
1353
+ <li>
1354
+
1355
+
1356
+ <span class='type'>(<tt>Boolean</tt>)</span>
1357
+
1358
+
1359
+
1360
+ &mdash;
1361
+ <div class='inline'>
1362
+ <p>when set, if an exception occurs during message processing, requeue it</p>
1363
+ </div>
1364
+
1365
+ </li>
1366
+
1367
+ </ul>
1368
+
1369
+ </div><table class="source_code">
1370
+ <tr>
1371
+ <td>
1372
+ <pre class="lines">
1373
+
1374
+
1375
+ 40
1376
+ 41
1377
+ 42</pre>
1378
+ </td>
1379
+ <td>
1380
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1381
+
1382
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1383
+ <span class='symbol'>:bunny</span>
1384
+ <span class='kw'>end</span></pre>
1385
+ </td>
1386
+ </tr>
1387
+ </table>
1388
+ </div>
1389
+
1390
+
1391
+ <span id=""></span>
1392
+ <div class="method_details ">
1393
+ <h3 class="signature " id="server-instance_method">
1394
+
1395
+ - (<tt>&lt;String, Hash&gt;</tt>) <strong>server</strong> <span class="extras">(readonly)</span>
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+ </h3><div class="docstring">
1402
+ <div class="discussion">
1403
+
1404
+ <p>Returns server connection attributes</p>
1405
+
1406
+
1407
+ </div>
1408
+ </div>
1409
+ <div class="tags">
1410
+
1411
+ <p class="tag_title">Returns:</p>
1412
+ <ul class="return">
1413
+
1414
+ <li>
1415
+
1416
+
1417
+ <span class='type'>(<tt>&lt;String, Hash&gt;</tt>)</span>
1418
+
1419
+
1420
+
1421
+ &mdash;
1422
+ <div class='inline'>
1423
+ <p>server connection attributes</p>
1424
+ </div>
1425
+
1426
+ </li>
1427
+
1428
+ </ul>
1429
+
1430
+ </div><table class="source_code">
1431
+ <tr>
1432
+ <td>
1433
+ <pre class="lines">
1434
+
1435
+
1436
+ 40
1437
+ 41
1438
+ 42</pre>
1439
+ </td>
1440
+ <td>
1441
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 40</span>
1442
+
1443
+ <span class='id identifier rubyid_config_accessor'>config_accessor</span> <span class='symbol'>:client_type</span> <span class='kw'>do</span>
1444
+ <span class='symbol'>:bunny</span>
1445
+ <span class='kw'>end</span></pre>
1446
+ </td>
1447
+ </tr>
1448
+ </table>
1449
+ </div>
1450
+
1451
+ </div>
1452
+
1453
+
1454
+ <div id="class_method_details" class="method_details_list">
1455
+ <h2>Class Method Details</h2>
1456
+
1457
+
1458
+ <div class="method_details first">
1459
+ <h3 class="signature first" id="client-class_method">
1460
+
1461
+ + (<tt><span class='object_link'><a href="Isimud/Client.html" title="Isimud::Client (class)">Isimud::Client</a></span></tt>) <strong>client</strong>
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+ </h3><div class="docstring">
1468
+ <div class="discussion">
1469
+
1470
+ <p>Fetch or initialize the messaging client for this process.</p>
1471
+
1472
+
1473
+ </div>
1474
+ </div>
1475
+ <div class="tags">
1476
+
1477
+ <p class="tag_title">Returns:</p>
1478
+ <ul class="return">
1479
+
1480
+ <li>
1481
+
1482
+
1483
+ <span class='type'>(<tt><span class='object_link'><a href="Isimud/Client.html" title="Isimud::Client (class)">Isimud::Client</a></span></tt>)</span>
1484
+
1485
+
1486
+
1487
+ &mdash;
1488
+ <div class='inline'>
1489
+ <p>messaging client</p>
1490
+ </div>
1491
+
1492
+ </li>
1493
+
1494
+ </ul>
1495
+
1496
+ </div><table class="source_code">
1497
+ <tr>
1498
+ <td>
1499
+ <pre class="lines">
1500
+
1501
+
1502
+ 73
1503
+ 74
1504
+ 75</pre>
1505
+ </td>
1506
+ <td>
1507
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 73</span>
1508
+
1509
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_client'>client</span>
1510
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_client'>default_client</span> <span class='op'>||=</span> <span class='id identifier rubyid_client_class'>client_class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_server'>server</span><span class='comma'>,</span> <span class='id identifier rubyid_client_options'>client_options</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1511
+ <span class='kw'>end</span></pre>
1512
+ </td>
1513
+ </tr>
1514
+ </table>
1515
+ </div>
1516
+
1517
+ <div class="method_details ">
1518
+ <h3 class="signature " id="client_class-class_method">
1519
+
1520
+ + (<tt>Object</tt>) <strong>client_class</strong>
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+ </h3><table class="source_code">
1527
+ <tr>
1528
+ <td>
1529
+ <pre class="lines">
1530
+
1531
+
1532
+ 66
1533
+ 67
1534
+ 68
1535
+ 69</pre>
1536
+ </td>
1537
+ <td>
1538
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 66</span>
1539
+
1540
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_client_class'>client_class</span>
1541
+ <span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_client_type'>client_type</span><span class='embexpr_end'>}</span><span class='tstring_content'>_client</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_classify'>classify</span>
1542
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Isimud::</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_type'>type</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_constantize'>constantize</span>
1543
+ <span class='kw'>end</span></pre>
1544
+ </td>
1545
+ </tr>
1546
+ </table>
1547
+ </div>
1548
+
1549
+ <div class="method_details ">
1550
+ <h3 class="signature " id="connect-class_method">
1551
+
1552
+ + (<tt>Object</tt>) <strong>connect</strong>
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+ </h3><div class="docstring">
1559
+ <div class="discussion">
1560
+
1561
+ <p>Connect to the messaging server</p>
1562
+
1563
+
1564
+ </div>
1565
+ </div>
1566
+ <div class="tags">
1567
+
1568
+
1569
+ </div><table class="source_code">
1570
+ <tr>
1571
+ <td>
1572
+ <pre class="lines">
1573
+
1574
+
1575
+ 78
1576
+ 79
1577
+ 80</pre>
1578
+ </td>
1579
+ <td>
1580
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 78</span>
1581
+
1582
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span>
1583
+ <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span>
1584
+ <span class='kw'>end</span></pre>
1585
+ </td>
1586
+ </tr>
1587
+ </table>
1588
+ </div>
1589
+
1590
+ <div class="method_details ">
1591
+ <h3 class="signature " id="model_watcher_enabled?-class_method">
1592
+
1593
+ + (<tt>Boolean</tt>) <strong>model_watcher_enabled?</strong>
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+ </h3><div class="docstring">
1600
+ <div class="discussion">
1601
+
1602
+ <p>Return status of model watching mode</p>
1603
+
1604
+
1605
+ </div>
1606
+ </div>
1607
+ <div class="tags">
1608
+
1609
+ <p class="tag_title">Returns:</p>
1610
+ <ul class="return">
1611
+
1612
+ <li>
1613
+
1614
+
1615
+ <span class='type'>(<tt>Boolean</tt>)</span>
1616
+
1617
+
1618
+
1619
+ </li>
1620
+
1621
+ </ul>
1622
+
1623
+ </div><table class="source_code">
1624
+ <tr>
1625
+ <td>
1626
+ <pre class="lines">
1627
+
1628
+
1629
+ 83
1630
+ 84
1631
+ 85</pre>
1632
+ </td>
1633
+ <td>
1634
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 83</span>
1635
+
1636
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_model_watcher_enabled?'>model_watcher_enabled?</span>
1637
+ <span class='id identifier rubyid_enable_model_watcher'>enable_model_watcher</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_enable_model_watcher'>enable_model_watcher</span>
1638
+ <span class='kw'>end</span></pre>
1639
+ </td>
1640
+ </tr>
1641
+ </table>
1642
+ </div>
1643
+
1644
+ <div class="method_details ">
1645
+ <h3 class="signature " id="reconnect-class_method">
1646
+
1647
+ + (<tt>Object</tt>) <strong>reconnect</strong>
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+ </h3><div class="docstring">
1654
+ <div class="discussion">
1655
+
1656
+ <p>Reconnect the messaging client</p>
1657
+
1658
+
1659
+ </div>
1660
+ </div>
1661
+ <div class="tags">
1662
+
1663
+
1664
+ </div><table class="source_code">
1665
+ <tr>
1666
+ <td>
1667
+ <pre class="lines">
1668
+
1669
+
1670
+ 88
1671
+ 89
1672
+ 90</pre>
1673
+ </td>
1674
+ <td>
1675
+ <pre class="code"><span class="info file"># File 'lib/isimud.rb', line 88</span>
1676
+
1677
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_reconnect'>reconnect</span>
1678
+ <span class='id identifier rubyid_client'>client</span><span class='period'>.</span><span class='id identifier rubyid_reconnect'>reconnect</span>
1679
+ <span class='kw'>end</span></pre>
1680
+ </td>
1681
+ </tr>
1682
+ </table>
1683
+ </div>
1684
+
1685
+ </div>
1686
+
1687
+ </div>
1688
+
1689
+ <div id="footer">
1690
+ Generated on Fri Apr 3 09:28:08 2015 by
1691
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1692
+ 0.8.7.6 (ruby-2.2.1).
1693
+ </div>
1694
+
1695
+ </body>
1696
+ </html>