dynamoid 0.4.0 → 0.4.1
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.
- data/Dynamoid.gemspec +5 -3
- data/README.markdown +2 -2
- data/VERSION +1 -1
- data/doc/Dynamoid.html +26 -14
- data/doc/Dynamoid/Adapter.html +33 -35
- data/doc/Dynamoid/Adapter/AwsSdk.html +177 -153
- data/doc/Dynamoid/Adapter/Local.html +144 -57
- data/doc/Dynamoid/Associations.html +3 -3
- data/doc/Dynamoid/Associations/Association.html +104 -1016
- data/doc/Dynamoid/Associations/BelongsTo.html +11 -192
- data/doc/Dynamoid/Associations/ClassMethods.html +17 -17
- data/doc/Dynamoid/Associations/HasAndBelongsToMany.html +15 -190
- data/doc/Dynamoid/Associations/HasMany.html +15 -190
- data/doc/Dynamoid/Associations/HasOne.html +11 -192
- data/doc/Dynamoid/Associations/ManyAssociation.html +1640 -0
- data/doc/Dynamoid/Associations/SingleAssociation.html +598 -0
- data/doc/Dynamoid/Components.html +4 -2
- data/doc/Dynamoid/Config.html +10 -10
- data/doc/Dynamoid/Config/Options.html +1 -1
- data/doc/Dynamoid/Criteria.html +1 -1
- data/doc/Dynamoid/Criteria/Chain.html +326 -22
- data/doc/Dynamoid/Criteria/ClassMethods.html +1 -1
- data/doc/Dynamoid/Document.html +181 -27
- data/doc/Dynamoid/Document/ClassMethods.html +392 -36
- data/doc/Dynamoid/Errors.html +1 -1
- data/doc/Dynamoid/Errors/DocumentNotValid.html +1 -1
- data/doc/Dynamoid/Errors/Error.html +1 -1
- data/doc/Dynamoid/Errors/InvalidField.html +1 -1
- data/doc/Dynamoid/Errors/MissingRangeKey.html +1 -1
- data/doc/Dynamoid/Fields.html +44 -24
- data/doc/Dynamoid/Fields/ClassMethods.html +60 -15
- data/doc/Dynamoid/Finders.html +1 -1
- data/doc/Dynamoid/Finders/ClassMethods.html +45 -31
- data/doc/Dynamoid/Indexes.html +7 -7
- data/doc/Dynamoid/Indexes/ClassMethods.html +6 -4
- data/doc/Dynamoid/Indexes/Index.html +47 -32
- data/doc/Dynamoid/Persistence.html +47 -49
- data/doc/Dynamoid/Persistence/ClassMethods.html +149 -47
- data/doc/Dynamoid/Validations.html +1 -1
- data/doc/_index.html +35 -13
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +37 -4
- data/doc/index.html +37 -4
- data/doc/method_list.html +320 -136
- data/doc/top-level-namespace.html +1 -1
- data/lib/dynamoid/adapter.rb +28 -30
- data/lib/dynamoid/adapter/aws_sdk.rb +23 -22
- data/lib/dynamoid/persistence.rb +33 -27
- metadata +6 -4
@@ -73,7 +73,7 @@
|
|
73
73
|
|
74
74
|
|
75
75
|
<dt class="r2">Includes:</dt>
|
76
|
-
<dd class="r2">ActiveModel::Conversion, ActiveModel::MassAssignmentSecurity, ActiveModel::Naming, ActiveModel::Observing, ActiveModel::Serializers::JSON, ActiveModel::Serializers::Xml, <span class='object_link'><a href="Associations.html" title="Dynamoid::Associations (module)">Associations</a></span>, <span class='object_link'><a href="Criteria.html" title="Dynamoid::Criteria (module)">Criteria</a></span>, <span class='object_link'><a href="Fields.html" title="Dynamoid::Fields (module)">Fields</a></span>, <span class='object_link'><a href="Finders.html" title="Dynamoid::Finders (module)">Finders</a></span>, <span class='object_link'><a href="Indexes.html" title="Dynamoid::Indexes (module)">Indexes</a></span>, <span class='object_link'><a href="Persistence.html" title="Dynamoid::Persistence (module)">Persistence</a></span>, <span class='object_link'><a href="Validations.html" title="Dynamoid::Validations (module)">Validations</a></span></dd>
|
76
|
+
<dd class="r2">ActiveModel::AttributeMethods, ActiveModel::Conversion, ActiveModel::Dirty, ActiveModel::MassAssignmentSecurity, ActiveModel::Naming, ActiveModel::Observing, ActiveModel::Serializers::JSON, ActiveModel::Serializers::Xml, <span class='object_link'><a href="Associations.html" title="Dynamoid::Associations (module)">Associations</a></span>, <span class='object_link'><a href="Criteria.html" title="Dynamoid::Criteria (module)">Criteria</a></span>, <span class='object_link'><a href="Fields.html" title="Dynamoid::Fields (module)">Fields</a></span>, <span class='object_link'><a href="Finders.html" title="Dynamoid::Finders (module)">Finders</a></span>, <span class='object_link'><a href="Indexes.html" title="Dynamoid::Indexes (module)">Indexes</a></span>, <span class='object_link'><a href="Persistence.html" title="Dynamoid::Persistence (module)">Persistence</a></span>, <span class='object_link'><a href="Validations.html" title="Dynamoid::Validations (module)">Validations</a></span></dd>
|
77
77
|
|
78
78
|
|
79
79
|
|
@@ -189,11 +189,13 @@ module, to keep the document class from getting too cluttered.</p>
|
|
189
189
|
|
190
190
|
|
191
191
|
|
192
|
+
|
193
|
+
|
192
194
|
|
193
195
|
</div>
|
194
196
|
|
195
197
|
<div id="footer">
|
196
|
-
Generated on
|
198
|
+
Generated on Thu Apr 26 01:26:25 2012 by
|
197
199
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
198
200
|
0.7.5 (ruby-1.9.3).
|
199
201
|
</div>
|
data/doc/Dynamoid/Config.html
CHANGED
@@ -250,12 +250,12 @@
|
|
250
250
|
<pre class="lines">
|
251
251
|
|
252
252
|
|
253
|
-
29
|
254
253
|
30
|
255
|
-
31
|
254
|
+
31
|
255
|
+
32</pre>
|
256
256
|
</td>
|
257
257
|
<td>
|
258
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/config.rb', line
|
258
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/config.rb', line 30</span>
|
259
259
|
|
260
260
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_logger'>default_logger</span>
|
261
261
|
<span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:logger</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>:</span> <span class='op'>::</span><span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='gvar'>$stdout</span><span class='rparen'>)</span>
|
@@ -303,12 +303,12 @@
|
|
303
303
|
<pre class="lines">
|
304
304
|
|
305
305
|
|
306
|
-
36
|
307
306
|
37
|
308
|
-
38
|
307
|
+
38
|
308
|
+
39</pre>
|
309
309
|
</td>
|
310
310
|
<td>
|
311
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/config.rb', line
|
311
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/config.rb', line 37</span>
|
312
312
|
|
313
313
|
<span class='kw'>def</span> <span class='id identifier rubyid_logger'>logger</span>
|
314
314
|
<span class='ivar'>@logger</span> <span class='op'>||=</span> <span class='id identifier rubyid_default_logger'>default_logger</span>
|
@@ -356,17 +356,17 @@
|
|
356
356
|
<pre class="lines">
|
357
357
|
|
358
358
|
|
359
|
-
43
|
360
359
|
44
|
361
360
|
45
|
362
361
|
46
|
363
362
|
47
|
364
363
|
48
|
365
364
|
49
|
366
|
-
50
|
365
|
+
50
|
366
|
+
51</pre>
|
367
367
|
</td>
|
368
368
|
<td>
|
369
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/config.rb', line
|
369
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/config.rb', line 44</span>
|
370
370
|
|
371
371
|
<span class='kw'>def</span> <span class='id identifier rubyid_logger='>logger=</span><span class='lparen'>(</span><span class='id identifier rubyid_logger'>logger</span><span class='rparen'>)</span>
|
372
372
|
<span class='kw'>case</span> <span class='id identifier rubyid_logger'>logger</span>
|
@@ -386,7 +386,7 @@
|
|
386
386
|
</div>
|
387
387
|
|
388
388
|
<div id="footer">
|
389
|
-
Generated on
|
389
|
+
Generated on Thu Apr 26 01:26:24 2012 by
|
390
390
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
391
391
|
0.7.5 (ruby-1.9.3).
|
392
392
|
</div>
|
@@ -600,7 +600,7 @@
|
|
600
600
|
</div>
|
601
601
|
|
602
602
|
<div id="footer">
|
603
|
-
Generated on
|
603
|
+
Generated on Thu Apr 26 01:26:25 2012 by
|
604
604
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
605
605
|
0.7.5 (ruby-1.9.3).
|
606
606
|
</div>
|
data/doc/Dynamoid/Criteria.html
CHANGED
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<div id="footer">
|
125
|
-
Generated on
|
125
|
+
Generated on Thu Apr 26 01:26:24 2012 by
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
127
127
|
0.7.5 (ruby-1.9.3).
|
128
128
|
</div>
|
@@ -115,6 +115,56 @@ or by a full table scan.</p>
|
|
115
115
|
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
116
116
|
<ul class="summary">
|
117
117
|
|
118
|
+
<li class="public ">
|
119
|
+
<span class="summary_signature">
|
120
|
+
|
121
|
+
<a href="#consistent_read-instance_method" title="#consistent_read (instance method)">- (Object) <strong>consistent_read</strong> </a>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute consistent_read.</p>
|
138
|
+
</div></span>
|
139
|
+
|
140
|
+
</li>
|
141
|
+
|
142
|
+
|
143
|
+
<li class="public ">
|
144
|
+
<span class="summary_signature">
|
145
|
+
|
146
|
+
<a href="#limit-instance_method" title="#limit (instance method)">- (Object) <strong>limit</strong>(limit) </a>
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
</span>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute limit.</p>
|
163
|
+
</div></span>
|
164
|
+
|
165
|
+
</li>
|
166
|
+
|
167
|
+
|
118
168
|
<li class="public ">
|
119
169
|
<span class="summary_signature">
|
120
170
|
|
@@ -162,6 +212,31 @@ or by a full table scan.</p>
|
|
162
212
|
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute source.</p>
|
163
213
|
</div></span>
|
164
214
|
|
215
|
+
</li>
|
216
|
+
|
217
|
+
|
218
|
+
<li class="public ">
|
219
|
+
<span class="summary_signature">
|
220
|
+
|
221
|
+
<a href="#start-instance_method" title="#start (instance method)">- (Object) <strong>start</strong>(start) </a>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</span>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute start.</p>
|
238
|
+
</div></span>
|
239
|
+
|
165
240
|
</li>
|
166
241
|
|
167
242
|
|
@@ -222,6 +297,48 @@ or by a full table scan.</p>
|
|
222
297
|
<span class="summary_desc"><div class='inline'><p>Returns all the records matching the criteria.</p>
|
223
298
|
</div></span>
|
224
299
|
|
300
|
+
</li>
|
301
|
+
|
302
|
+
|
303
|
+
<li class="public ">
|
304
|
+
<span class="summary_signature">
|
305
|
+
|
306
|
+
<a href="#consistent-instance_method" title="#consistent (instance method)">- (Object) <strong>consistent</strong> </a>
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
</span>
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
320
|
+
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
324
|
+
<li class="public ">
|
325
|
+
<span class="summary_signature">
|
326
|
+
|
327
|
+
<a href="#consistent_opts-instance_method" title="#consistent_opts (instance method)">- (Object) <strong>consistent_opts</strong> </a>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
</span>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
341
|
+
|
225
342
|
</li>
|
226
343
|
|
227
344
|
|
@@ -367,7 +484,8 @@ or by a full table scan.</p>
|
|
367
484
|
15
|
368
485
|
16
|
369
486
|
17
|
370
|
-
18
|
487
|
+
18
|
488
|
+
19</pre>
|
371
489
|
</td>
|
372
490
|
<td>
|
373
491
|
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 15</span>
|
@@ -375,6 +493,7 @@ or by a full table scan.</p>
|
|
375
493
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span>
|
376
494
|
<span class='ivar'>@query</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
377
495
|
<span class='ivar'>@source</span> <span class='op'>=</span> <span class='id identifier rubyid_source'>source</span>
|
496
|
+
<span class='ivar'>@consistent_read</span> <span class='op'>=</span> <span class='kw'>false</span>
|
378
497
|
<span class='kw'>end</span></pre>
|
379
498
|
</td>
|
380
499
|
</tr>
|
@@ -387,10 +506,94 @@ or by a full table scan.</p>
|
|
387
506
|
<h2>Instance Attribute Details</h2>
|
388
507
|
|
389
508
|
|
509
|
+
<span id="consistent_read=-instance_method"></span>
|
510
|
+
<span id="consistent_read-instance_method"></span>
|
511
|
+
<div class="method_details first">
|
512
|
+
<p class="signature first" id="consistent_read-instance_method">
|
513
|
+
|
514
|
+
- (<tt>Object</tt>) <strong>consistent_read</strong>
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
</p><div class="docstring">
|
519
|
+
<div class="discussion">
|
520
|
+
<p>Returns the value of attribute consistent_read</p>
|
521
|
+
|
522
|
+
|
523
|
+
</div>
|
524
|
+
</div>
|
525
|
+
<div class="tags">
|
526
|
+
|
527
|
+
|
528
|
+
</div><table class="source_code">
|
529
|
+
<tr>
|
530
|
+
<td>
|
531
|
+
<pre class="lines">
|
532
|
+
|
533
|
+
|
534
|
+
9
|
535
|
+
10
|
536
|
+
11</pre>
|
537
|
+
</td>
|
538
|
+
<td>
|
539
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 9</span>
|
540
|
+
|
541
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_consistent_read'>consistent_read</span>
|
542
|
+
<span class='ivar'>@consistent_read</span>
|
543
|
+
<span class='kw'>end</span></pre>
|
544
|
+
</td>
|
545
|
+
</tr>
|
546
|
+
</table>
|
547
|
+
</div>
|
548
|
+
|
549
|
+
|
550
|
+
<span id="limit=-instance_method"></span>
|
551
|
+
<span id="limit-instance_method"></span>
|
552
|
+
<div class="method_details ">
|
553
|
+
<p class="signature " id="limit-instance_method">
|
554
|
+
|
555
|
+
- (<tt>Object</tt>) <strong>limit</strong>(limit)
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
</p><div class="docstring">
|
560
|
+
<div class="discussion">
|
561
|
+
<p>Returns the value of attribute limit</p>
|
562
|
+
|
563
|
+
|
564
|
+
</div>
|
565
|
+
</div>
|
566
|
+
<div class="tags">
|
567
|
+
|
568
|
+
|
569
|
+
</div><table class="source_code">
|
570
|
+
<tr>
|
571
|
+
<td>
|
572
|
+
<pre class="lines">
|
573
|
+
|
574
|
+
|
575
|
+
9
|
576
|
+
10
|
577
|
+
11
|
578
|
+
12</pre>
|
579
|
+
</td>
|
580
|
+
<td>
|
581
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 9</span>
|
582
|
+
|
583
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_limit'>limit</span><span class='lparen'>(</span><span class='id identifier rubyid_limit'>limit</span><span class='rparen'>)</span>
|
584
|
+
<span class='ivar'>@limit</span> <span class='op'>=</span> <span class='id identifier rubyid_limit'>limit</span>
|
585
|
+
<span class='id identifier rubyid_records'>records</span>
|
586
|
+
<span class='kw'>end</span></pre>
|
587
|
+
</td>
|
588
|
+
</tr>
|
589
|
+
</table>
|
590
|
+
</div>
|
591
|
+
|
592
|
+
|
390
593
|
<span id="query=-instance_method"></span>
|
391
594
|
<span id="query-instance_method"></span>
|
392
|
-
<div class="method_details
|
393
|
-
<p class="signature
|
595
|
+
<div class="method_details ">
|
596
|
+
<p class="signature " id="query-instance_method">
|
394
597
|
|
395
598
|
- (<tt>Object</tt>) <strong>query</strong>
|
396
599
|
|
@@ -469,6 +672,49 @@ or by a full table scan.</p>
|
|
469
672
|
</div>
|
470
673
|
|
471
674
|
|
675
|
+
<span id="start=-instance_method"></span>
|
676
|
+
<span id="start-instance_method"></span>
|
677
|
+
<div class="method_details ">
|
678
|
+
<p class="signature " id="start-instance_method">
|
679
|
+
|
680
|
+
- (<tt>Object</tt>) <strong>start</strong>(start)
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
</p><div class="docstring">
|
685
|
+
<div class="discussion">
|
686
|
+
<p>Returns the value of attribute start</p>
|
687
|
+
|
688
|
+
|
689
|
+
</div>
|
690
|
+
</div>
|
691
|
+
<div class="tags">
|
692
|
+
|
693
|
+
|
694
|
+
</div><table class="source_code">
|
695
|
+
<tr>
|
696
|
+
<td>
|
697
|
+
<pre class="lines">
|
698
|
+
|
699
|
+
|
700
|
+
9
|
701
|
+
10
|
702
|
+
11
|
703
|
+
12</pre>
|
704
|
+
</td>
|
705
|
+
<td>
|
706
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 9</span>
|
707
|
+
|
708
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_start'>start</span><span class='lparen'>(</span><span class='id identifier rubyid_start'>start</span><span class='rparen'>)</span>
|
709
|
+
<span class='ivar'>@start</span> <span class='op'>=</span> <span class='id identifier rubyid_start'>start</span>
|
710
|
+
<span class='kw'>self</span>
|
711
|
+
<span class='kw'>end</span></pre>
|
712
|
+
</td>
|
713
|
+
</tr>
|
714
|
+
</table>
|
715
|
+
</div>
|
716
|
+
|
717
|
+
|
472
718
|
<span id="values=-instance_method"></span>
|
473
719
|
<span id="values-instance_method"></span>
|
474
720
|
<div class="method_details ">
|
@@ -554,12 +800,12 @@ or by a full table scan.</p>
|
|
554
800
|
<pre class="lines">
|
555
801
|
|
556
802
|
|
557
|
-
|
558
|
-
|
559
|
-
|
803
|
+
45
|
804
|
+
46
|
805
|
+
47</pre>
|
560
806
|
</td>
|
561
807
|
<td>
|
562
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line
|
808
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 45</span>
|
563
809
|
|
564
810
|
<span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span>
|
565
811
|
<span class='id identifier rubyid_records'>records</span>
|
@@ -567,6 +813,64 @@ or by a full table scan.</p>
|
|
567
813
|
</td>
|
568
814
|
</tr>
|
569
815
|
</table>
|
816
|
+
</div>
|
817
|
+
|
818
|
+
<div class="method_details ">
|
819
|
+
<p class="signature " id="consistent-instance_method">
|
820
|
+
|
821
|
+
- (<tt>Object</tt>) <strong>consistent</strong>
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
</p><table class="source_code">
|
826
|
+
<tr>
|
827
|
+
<td>
|
828
|
+
<pre class="lines">
|
829
|
+
|
830
|
+
|
831
|
+
37
|
832
|
+
38
|
833
|
+
39
|
834
|
+
40</pre>
|
835
|
+
</td>
|
836
|
+
<td>
|
837
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 37</span>
|
838
|
+
|
839
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_consistent'>consistent</span>
|
840
|
+
<span class='ivar'>@consistent_read</span> <span class='op'>=</span> <span class='kw'>true</span>
|
841
|
+
<span class='kw'>self</span>
|
842
|
+
<span class='kw'>end</span></pre>
|
843
|
+
</td>
|
844
|
+
</tr>
|
845
|
+
</table>
|
846
|
+
</div>
|
847
|
+
|
848
|
+
<div class="method_details ">
|
849
|
+
<p class="signature " id="consistent_opts-instance_method">
|
850
|
+
|
851
|
+
- (<tt>Object</tt>) <strong>consistent_opts</strong>
|
852
|
+
|
853
|
+
|
854
|
+
|
855
|
+
</p><table class="source_code">
|
856
|
+
<tr>
|
857
|
+
<td>
|
858
|
+
<pre class="lines">
|
859
|
+
|
860
|
+
|
861
|
+
73
|
862
|
+
74
|
863
|
+
75</pre>
|
864
|
+
</td>
|
865
|
+
<td>
|
866
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 73</span>
|
867
|
+
|
868
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_consistent_opts'>consistent_opts</span>
|
869
|
+
<span class='lbrace'>{</span> <span class='symbol'>:consistent_read</span> <span class='op'>=></span> <span class='id identifier rubyid_consistent_read'>consistent_read</span> <span class='rbrace'>}</span>
|
870
|
+
<span class='kw'>end</span></pre>
|
871
|
+
</td>
|
872
|
+
</tr>
|
873
|
+
</table>
|
570
874
|
</div>
|
571
875
|
|
572
876
|
<div class="method_details ">
|
@@ -607,12 +911,12 @@ or by a full table scan.</p>
|
|
607
911
|
<pre class="lines">
|
608
912
|
|
609
913
|
|
610
|
-
|
611
|
-
|
612
|
-
|
914
|
+
69
|
915
|
+
70
|
916
|
+
71</pre>
|
613
917
|
</td>
|
614
918
|
<td>
|
615
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line
|
919
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 69</span>
|
616
920
|
|
617
921
|
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
618
922
|
<span class='id identifier rubyid_records'>records</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -660,15 +964,15 @@ or by a full table scan.</p>
|
|
660
964
|
<pre class="lines">
|
661
965
|
|
662
966
|
|
663
|
-
|
664
|
-
|
665
|
-
|
967
|
+
52
|
968
|
+
53
|
969
|
+
54</pre>
|
666
970
|
</td>
|
667
971
|
<td>
|
668
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line
|
972
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 52</span>
|
669
973
|
|
670
974
|
<span class='kw'>def</span> <span class='id identifier rubyid_first'>first</span>
|
671
|
-
<span class='id identifier
|
975
|
+
<span class='id identifier rubyid_limit'>limit</span><span class='lparen'>(</span><span class='int'>1</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
672
976
|
<span class='kw'>end</span></pre>
|
673
977
|
</td>
|
674
978
|
</tr>
|
@@ -684,8 +988,8 @@ or by a full table scan.</p>
|
|
684
988
|
|
685
989
|
</p><div class="docstring">
|
686
990
|
<div class="discussion">
|
687
|
-
<p>The workhorse method of the criteria chain. Each key in the passed in hash will become another criteria that the
|
688
|
-
ultimate query must match. A key can either be a symbol or a string, and should be an attribute name or
|
991
|
+
<p>The workhorse method of the criteria chain. Each key in the passed in hash will become another criteria that the
|
992
|
+
ultimate query must match. A key can either be a symbol or a string, and should be an attribute name or
|
689
993
|
an attribute name with a range operator.</p>
|
690
994
|
|
691
995
|
|
@@ -728,13 +1032,13 @@ an attribute name with a range operator.</p>
|
|
728
1032
|
<pre class="lines">
|
729
1033
|
|
730
1034
|
|
731
|
-
31
|
732
1035
|
32
|
733
1036
|
33
|
734
|
-
34
|
1037
|
+
34
|
1038
|
+
35</pre>
|
735
1039
|
</td>
|
736
1040
|
<td>
|
737
|
-
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line
|
1041
|
+
<pre class="code"><span class="info file"># File 'lib/dynamoid/criteria/chain.rb', line 32</span>
|
738
1042
|
|
739
1043
|
<span class='kw'>def</span> <span class='id identifier rubyid_where'>where</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
740
1044
|
<span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_query'>query</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span><span class='rbrace'>}</span>
|
@@ -750,7 +1054,7 @@ an attribute name with a range operator.</p>
|
|
750
1054
|
</div>
|
751
1055
|
|
752
1056
|
<div id="footer">
|
753
|
-
Generated on
|
1057
|
+
Generated on Thu Apr 26 01:26:25 2012 by
|
754
1058
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
755
1059
|
0.7.5 (ruby-1.9.3).
|
756
1060
|
</div>
|