mack-data_factory 0.6.1.1 → 0.6.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/Kernel.html +207 -0
- data/doc/classes/Mack.html +143 -0
- data/doc/classes/Mack/Data/Bridge.html +269 -0
- data/doc/classes/Mack/Data/Factory.html +171 -0
- data/doc/classes/Mack/Data/Factory/ClassMethods.html +262 -0
- data/doc/classes/Mack/Data/Factory/FieldContentGenerator.html +666 -0
- data/doc/classes/Mack/Data/Field.html +267 -0
- data/doc/classes/Mack/Data/FieldMgr.html +217 -0
- data/doc/classes/Mack/Data/OrmBridge/ActiveRecord.html +267 -0
- data/doc/classes/Mack/Data/OrmBridge/DataMapper.html +267 -0
- data/doc/classes/Mack/Data/OrmBridge/Default.html +266 -0
- data/doc/created.rid +1 -0
- data/doc/files/README.html +107 -0
- data/doc/files/lib/mack-data_factory/content_generator_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/core_extensions/kernel_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/data_factory_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/field_manager_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/field_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/orm_api_bridge/bridge_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/orm_api_bridge/orm/active_record_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/orm_api_bridge/orm/data_mapper_rb.html +101 -0
- data/doc/files/lib/mack-data_factory/orm_api_bridge/orm/default_rb.html +101 -0
- data/doc/files/lib/mack-data_factory_rb.html +108 -0
- data/doc/fr_class_index.html +42 -0
- data/doc/fr_file_index.html +37 -0
- data/doc/fr_method_index.html +78 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- metadata +30 -2
@@ -0,0 +1,267 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: Mack::Data::OrmBridge::ActiveRecord</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Mack::Data::OrmBridge::ActiveRecord</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../../files/lib/mack-data_factory/orm_api_bridge/orm/active_record_rb.html">
|
59
|
+
lib/mack-data_factory/orm_api_bridge/orm/active_record.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000034">can_handle</a>
|
90
|
+
<a href="#M000037">count</a>
|
91
|
+
<a href="#M000035">get</a>
|
92
|
+
<a href="#M000036">get_all</a>
|
93
|
+
<a href="#M000039">get_first</a>
|
94
|
+
<a href="#M000038">save</a>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if includes -->
|
102
|
+
|
103
|
+
<div id="section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<!-- if method_list -->
|
113
|
+
<div id="methods">
|
114
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
115
|
+
|
116
|
+
<div id="method-M000034" class="method-detail">
|
117
|
+
<a name="M000034"></a>
|
118
|
+
|
119
|
+
<div class="method-heading">
|
120
|
+
<a href="#M000034" class="method-signature">
|
121
|
+
<span class="method-name">can_handle</span><span class="method-args">(obj)</span>
|
122
|
+
</a>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<div class="method-description">
|
126
|
+
<p><a class="source-toggle" href="#"
|
127
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000034-source">
|
129
|
+
<pre>
|
130
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/active_record.rb, line 6</span>
|
131
|
+
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">can_handle</span>(<span class="ruby-identifier">obj</span>)
|
132
|
+
7: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">const_defined?</span>(<span class="ruby-value str">'ActiveRecord'</span>)
|
133
|
+
8: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-operator">::</span><span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>)
|
134
|
+
9: <span class="ruby-keyword kw">end</span>
|
135
|
+
</pre>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<div id="method-M000037" class="method-detail">
|
141
|
+
<a name="M000037"></a>
|
142
|
+
|
143
|
+
<div class="method-heading">
|
144
|
+
<a href="#M000037" class="method-signature">
|
145
|
+
<span class="method-name">count</span><span class="method-args">(obj, *args)</span>
|
146
|
+
</a>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
<p><a class="source-toggle" href="#"
|
151
|
+
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000037-source">
|
153
|
+
<pre>
|
154
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/active_record.rb, line 19</span>
|
155
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
156
|
+
20: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">count</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
157
|
+
21: <span class="ruby-keyword kw">end</span>
|
158
|
+
</pre>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div id="method-M000035" class="method-detail">
|
164
|
+
<a name="M000035"></a>
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<a href="#M000035" class="method-signature">
|
168
|
+
<span class="method-name">get</span><span class="method-args">(obj, *args)</span>
|
169
|
+
</a>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<div class="method-description">
|
173
|
+
<p><a class="source-toggle" href="#"
|
174
|
+
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
175
|
+
<div class="method-source-code" id="M000035-source">
|
176
|
+
<pre>
|
177
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/active_record.rb, line 11</span>
|
178
|
+
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
179
|
+
12: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">find</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
180
|
+
13: <span class="ruby-keyword kw">end</span>
|
181
|
+
</pre>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
<div id="method-M000036" class="method-detail">
|
187
|
+
<a name="M000036"></a>
|
188
|
+
|
189
|
+
<div class="method-heading">
|
190
|
+
<a href="#M000036" class="method-signature">
|
191
|
+
<span class="method-name">get_all</span><span class="method-args">(obj, *args)</span>
|
192
|
+
</a>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
<p><a class="source-toggle" href="#"
|
197
|
+
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
198
|
+
<div class="method-source-code" id="M000036-source">
|
199
|
+
<pre>
|
200
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/active_record.rb, line 15</span>
|
201
|
+
15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_all</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
202
|
+
16: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:all</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
203
|
+
17: <span class="ruby-keyword kw">end</span>
|
204
|
+
</pre>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
<div id="method-M000039" class="method-detail">
|
210
|
+
<a name="M000039"></a>
|
211
|
+
|
212
|
+
<div class="method-heading">
|
213
|
+
<a href="#M000039" class="method-signature">
|
214
|
+
<span class="method-name">get_first</span><span class="method-args">(obj, *args)</span>
|
215
|
+
</a>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div class="method-description">
|
219
|
+
<p><a class="source-toggle" href="#"
|
220
|
+
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
221
|
+
<div class="method-source-code" id="M000039-source">
|
222
|
+
<pre>
|
223
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/active_record.rb, line 27</span>
|
224
|
+
27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_first</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
225
|
+
28: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">:first</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
226
|
+
29: <span class="ruby-keyword kw">end</span>
|
227
|
+
</pre>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
<div id="method-M000038" class="method-detail">
|
233
|
+
<a name="M000038"></a>
|
234
|
+
|
235
|
+
<div class="method-heading">
|
236
|
+
<a href="#M000038" class="method-signature">
|
237
|
+
<span class="method-name">save</span><span class="method-args">(obj, *args)</span>
|
238
|
+
</a>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
<p><a class="source-toggle" href="#"
|
243
|
+
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000038-source">
|
245
|
+
<pre>
|
246
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/active_record.rb, line 23</span>
|
247
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
248
|
+
24: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">save</span>
|
249
|
+
25: <span class="ruby-keyword kw">end</span>
|
250
|
+
</pre>
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
|
255
|
+
|
256
|
+
</div>
|
257
|
+
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
<div id="validator-badges">
|
263
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
</body>
|
267
|
+
</html>
|
@@ -0,0 +1,267 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: Mack::Data::OrmBridge::DataMapper</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Mack::Data::OrmBridge::DataMapper</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../../files/lib/mack-data_factory/orm_api_bridge/orm/data_mapper_rb.html">
|
59
|
+
lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000022">can_handle</a>
|
90
|
+
<a href="#M000025">count</a>
|
91
|
+
<a href="#M000023">get</a>
|
92
|
+
<a href="#M000024">get_all</a>
|
93
|
+
<a href="#M000027">get_first</a>
|
94
|
+
<a href="#M000026">save</a>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if includes -->
|
102
|
+
|
103
|
+
<div id="section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<!-- if method_list -->
|
113
|
+
<div id="methods">
|
114
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
115
|
+
|
116
|
+
<div id="method-M000022" class="method-detail">
|
117
|
+
<a name="M000022"></a>
|
118
|
+
|
119
|
+
<div class="method-heading">
|
120
|
+
<a href="#M000022" class="method-signature">
|
121
|
+
<span class="method-name">can_handle</span><span class="method-args">(obj)</span>
|
122
|
+
</a>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<div class="method-description">
|
126
|
+
<p><a class="source-toggle" href="#"
|
127
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000022-source">
|
129
|
+
<pre>
|
130
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb, line 6</span>
|
131
|
+
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">can_handle</span>(<span class="ruby-identifier">obj</span>)
|
132
|
+
7: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">const_defined?</span>(<span class="ruby-value str">'DataMapper'</span>)
|
133
|
+
8: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">ancestors</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-operator">::</span><span class="ruby-constant">DataMapper</span><span class="ruby-operator">::</span><span class="ruby-constant">Resource</span>)
|
134
|
+
9: <span class="ruby-keyword kw">end</span>
|
135
|
+
</pre>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
<div id="method-M000025" class="method-detail">
|
141
|
+
<a name="M000025"></a>
|
142
|
+
|
143
|
+
<div class="method-heading">
|
144
|
+
<a href="#M000025" class="method-signature">
|
145
|
+
<span class="method-name">count</span><span class="method-args">(obj, *args)</span>
|
146
|
+
</a>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
<p><a class="source-toggle" href="#"
|
151
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000025-source">
|
153
|
+
<pre>
|
154
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb, line 19</span>
|
155
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
156
|
+
20: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">count</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
157
|
+
21: <span class="ruby-keyword kw">end</span>
|
158
|
+
</pre>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div id="method-M000023" class="method-detail">
|
164
|
+
<a name="M000023"></a>
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<a href="#M000023" class="method-signature">
|
168
|
+
<span class="method-name">get</span><span class="method-args">(obj, *args)</span>
|
169
|
+
</a>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<div class="method-description">
|
173
|
+
<p><a class="source-toggle" href="#"
|
174
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
175
|
+
<div class="method-source-code" id="M000023-source">
|
176
|
+
<pre>
|
177
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb, line 11</span>
|
178
|
+
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
179
|
+
12: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">get</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
180
|
+
13: <span class="ruby-keyword kw">end</span>
|
181
|
+
</pre>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
</div>
|
185
|
+
|
186
|
+
<div id="method-M000024" class="method-detail">
|
187
|
+
<a name="M000024"></a>
|
188
|
+
|
189
|
+
<div class="method-heading">
|
190
|
+
<a href="#M000024" class="method-signature">
|
191
|
+
<span class="method-name">get_all</span><span class="method-args">(obj, *args)</span>
|
192
|
+
</a>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
<p><a class="source-toggle" href="#"
|
197
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
198
|
+
<div class="method-source-code" id="M000024-source">
|
199
|
+
<pre>
|
200
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb, line 15</span>
|
201
|
+
15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_all</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
202
|
+
16: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">all</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
203
|
+
17: <span class="ruby-keyword kw">end</span>
|
204
|
+
</pre>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
<div id="method-M000027" class="method-detail">
|
210
|
+
<a name="M000027"></a>
|
211
|
+
|
212
|
+
<div class="method-heading">
|
213
|
+
<a href="#M000027" class="method-signature">
|
214
|
+
<span class="method-name">get_first</span><span class="method-args">(obj, *args)</span>
|
215
|
+
</a>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div class="method-description">
|
219
|
+
<p><a class="source-toggle" href="#"
|
220
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
221
|
+
<div class="method-source-code" id="M000027-source">
|
222
|
+
<pre>
|
223
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb, line 27</span>
|
224
|
+
27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_first</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
225
|
+
28: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">first</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
226
|
+
29: <span class="ruby-keyword kw">end</span>
|
227
|
+
</pre>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
|
232
|
+
<div id="method-M000026" class="method-detail">
|
233
|
+
<a name="M000026"></a>
|
234
|
+
|
235
|
+
<div class="method-heading">
|
236
|
+
<a href="#M000026" class="method-signature">
|
237
|
+
<span class="method-name">save</span><span class="method-args">(obj, *args)</span>
|
238
|
+
</a>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
<p><a class="source-toggle" href="#"
|
243
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000026-source">
|
245
|
+
<pre>
|
246
|
+
<span class="ruby-comment cmt"># File lib/mack-data_factory/orm_api_bridge/orm/data_mapper.rb, line 23</span>
|
247
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
248
|
+
24: <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">save</span>
|
249
|
+
25: <span class="ruby-keyword kw">end</span>
|
250
|
+
</pre>
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
|
255
|
+
|
256
|
+
</div>
|
257
|
+
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
<div id="validator-badges">
|
263
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
</body>
|
267
|
+
</html>
|