cdss-ruby 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rubocop.yml +86 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/README.md +101 -0
- data/Rakefile +26 -0
- data/docs/Cdss/AdminCalls.html +399 -0
- data/docs/Cdss/Analysis.html +972 -0
- data/docs/Cdss/Client.html +581 -0
- data/docs/Cdss/Climate.html +1257 -0
- data/docs/Cdss/Concerns/LogReadingAttributes.html +406 -0
- data/docs/Cdss/Concerns/WellReadingAttributes.html +414 -0
- data/docs/Cdss/Concerns.html +117 -0
- data/docs/Cdss/GroundWater.html +945 -0
- data/docs/Cdss/Models/AdminCall.html +252 -0
- data/docs/Cdss/Models/Analysis.html +397 -0
- data/docs/Cdss/Models/CallAnalysis.html +140 -0
- data/docs/Cdss/Models/ClimateStation.html +249 -0
- data/docs/Cdss/Models/DiversionRecord.html +248 -0
- data/docs/Cdss/Models/Reading.html +301 -0
- data/docs/Cdss/Models/ReferenceTable.html +339 -0
- data/docs/Cdss/Models/RouteAnalysis.html +140 -0
- data/docs/Cdss/Models/SourceRoute.html +140 -0
- data/docs/Cdss/Models/Station.html +248 -0
- data/docs/Cdss/Models/Structure.html +259 -0
- data/docs/Cdss/Models/WaterClass.html +249 -0
- data/docs/Cdss/Models/WaterRight.html +255 -0
- data/docs/Cdss/Models/Well.html +251 -0
- data/docs/Cdss/Models.html +117 -0
- data/docs/Cdss/Parser.html +2155 -0
- data/docs/Cdss/Parsers/AdminCallsParser.html +201 -0
- data/docs/Cdss/Parsers/AnalysisParser.html +296 -0
- data/docs/Cdss/Parsers/BaseParser.html +207 -0
- data/docs/Cdss/Parsers/ClimateParser.html +253 -0
- data/docs/Cdss/Parsers/ReadingParser.html +201 -0
- data/docs/Cdss/Parsers/ReferenceTablesParser.html +201 -0
- data/docs/Cdss/Parsers/StationParser.html +201 -0
- data/docs/Cdss/Parsers/StructuresParser.html +305 -0
- data/docs/Cdss/Parsers/WaterRightsParser.html +219 -0
- data/docs/Cdss/Parsers/WellParser.html +357 -0
- data/docs/Cdss/Parsers.html +117 -0
- data/docs/Cdss/ReferenceTables.html +332 -0
- data/docs/Cdss/Structures.html +1132 -0
- data/docs/Cdss/SurfaceWater.html +798 -0
- data/docs/Cdss/Telemetry.html +763 -0
- data/docs/Cdss/Utils.html +1276 -0
- data/docs/Cdss/WaterRights.html +634 -0
- data/docs/Cdss.html +292 -0
- data/docs/_index.html +493 -0
- data/docs/class_list.html +54 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +503 -0
- data/docs/file.README.html +108 -0
- data/docs/file_list.html +59 -0
- data/docs/frames.html +22 -0
- data/docs/index.html +108 -0
- data/docs/js/app.js +344 -0
- data/docs/js/full_list.js +242 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +790 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/cdss/admin_calls.rb +44 -0
- data/lib/cdss/analysis.rb +183 -0
- data/lib/cdss/client.rb +121 -0
- data/lib/cdss/climate.rb +155 -0
- data/lib/cdss/concerns/log_reading_attributes.rb +48 -0
- data/lib/cdss/concerns/well_reading_attributes.rb +56 -0
- data/lib/cdss/ground_water.rb +112 -0
- data/lib/cdss/models/admin_call.rb +45 -0
- data/lib/cdss/models/analysis.rb +77 -0
- data/lib/cdss/models/climate_station.rb +40 -0
- data/lib/cdss/models/reading.rb +54 -0
- data/lib/cdss/models/reference_table.rb +56 -0
- data/lib/cdss/models/station.rb +40 -0
- data/lib/cdss/models/structure.rb +101 -0
- data/lib/cdss/models/water_right.rb +47 -0
- data/lib/cdss/models/well.rb +43 -0
- data/lib/cdss/parser.rb +172 -0
- data/lib/cdss/parsers/admin_calls_parser.rb +47 -0
- data/lib/cdss/parsers/analysis_parser.rb +124 -0
- data/lib/cdss/parsers/base_parser.rb +18 -0
- data/lib/cdss/parsers/climate_parser.rb +86 -0
- data/lib/cdss/parsers/reading_parser.rb +90 -0
- data/lib/cdss/parsers/reference_tables_parser.rb +55 -0
- data/lib/cdss/parsers/station_parser.rb +42 -0
- data/lib/cdss/parsers/structures_parser.rb +96 -0
- data/lib/cdss/parsers/water_rights_parser.rb +77 -0
- data/lib/cdss/parsers/well_parser.rb +107 -0
- data/lib/cdss/reference_tables.rb +147 -0
- data/lib/cdss/structures.rb +235 -0
- data/lib/cdss/surface_water.rb +186 -0
- data/lib/cdss/telemetry.rb +98 -0
- data/lib/cdss/utils.rb +152 -0
- data/lib/cdss/version.rb +5 -0
- data/lib/cdss/water_rights.rb +95 -0
- data/lib/cdss.rb +27 -0
- data/sig/cdss/ruby.rbs +6 -0
- metadata +272 -0
@@ -0,0 +1,406 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Cdss::Concerns::LogReadingAttributes
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.37
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Cdss::Concerns::LogReadingAttributes";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (L)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Cdss.html" title="Cdss (module)">Cdss</a></span></span> » <span class='title'><span class='object_link'><a href="../Concerns.html" title="Cdss::Concerns (module)">Concerns</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">LogReadingAttributes</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Cdss::Concerns::LogReadingAttributes
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<dl>
|
78
|
+
<dt>Included in:</dt>
|
79
|
+
<dd><span class='object_link'><a href="../Models/Reading.html" title="Cdss::Models::Reading (class)">Models::Reading</a></span></dd>
|
80
|
+
</dl>
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<dl>
|
85
|
+
<dt>Defined in:</dt>
|
86
|
+
<dd>lib/cdss/concerns/log_reading_attributes.rb</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
|
94
|
+
<p>A concern module that adds log reading-related attributes to classes.</p>
|
95
|
+
|
96
|
+
<p>This module provides a set of standardized attributes for log reading data, including aquifer information, depth measurements, elevation, and comments. When included in a class, it dynamically adds accessor methods for these attributes.</p>
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<div class="tags">
|
102
|
+
|
103
|
+
<div class="examples">
|
104
|
+
<h4 class="tag_title">Examples:</h4>
|
105
|
+
|
106
|
+
|
107
|
+
<h5 class="example_title"><div class='inline'>
|
108
|
+
<p>Adding log reading attributes to a class</p>
|
109
|
+
</div></h5>
|
110
|
+
|
111
|
+
<pre class="example code"><code><span class='kw'>class</span> <span class='const'>WellLog</span>
|
112
|
+
<span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../../Cdss.html" title="Cdss (module)">Cdss</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Concerns.html" title="Cdss::Concerns (module)">Concerns</a></span></span><span class='op'>::</span><span class='const'>LogReadingAttributes</span>
|
113
|
+
<span class='kw'>end</span></code></pre>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<h2>
|
121
|
+
Constant Summary
|
122
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
123
|
+
</h2>
|
124
|
+
|
125
|
+
<dl class="constants">
|
126
|
+
|
127
|
+
<dt id="LOG_ATTRIBUTES-constant" class="">LOG_ATTRIBUTES =
|
128
|
+
<div class="docstring">
|
129
|
+
<div class="discussion">
|
130
|
+
|
131
|
+
<p>Predefined list of log reading attributes</p>
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
<div class="tags">
|
137
|
+
|
138
|
+
<p class="tag_title">Returns:</p>
|
139
|
+
<ul class="return">
|
140
|
+
|
141
|
+
<li>
|
142
|
+
|
143
|
+
|
144
|
+
<span class='type'>(<tt>Array<Symbol></tt>)</span>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
—
|
149
|
+
<div class='inline'>
|
150
|
+
<p>List of attributes related to log readings</p>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
</li>
|
154
|
+
|
155
|
+
</ul>
|
156
|
+
|
157
|
+
</div>
|
158
|
+
</dt>
|
159
|
+
<dd><pre class="code"><span class='qsymbols_beg'>%i[</span><span class='words_sep'>
|
160
|
+
</span><span class='tstring_content'>aquifer</span><span class='words_sep'>
|
161
|
+
</span><span class='tstring_content'>g_log_top_depth</span><span class='words_sep'>
|
162
|
+
</span><span class='tstring_content'>g_log_base_depth</span><span class='words_sep'>
|
163
|
+
</span><span class='tstring_content'>g_log_top_elev</span><span class='words_sep'>
|
164
|
+
</span><span class='tstring_content'>g_log_base_elev</span><span class='words_sep'>
|
165
|
+
</span><span class='tstring_content'>g_log_thickness</span><span class='words_sep'>
|
166
|
+
</span><span class='tstring_content'>comment</span><span class='words_sep'>
|
167
|
+
</span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
168
|
+
|
169
|
+
</dl>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<h2>
|
180
|
+
Class Method Summary
|
181
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
182
|
+
</h2>
|
183
|
+
|
184
|
+
<ul class="summary">
|
185
|
+
|
186
|
+
<li class="public ">
|
187
|
+
<span class="summary_signature">
|
188
|
+
|
189
|
+
<a href="#included-class_method" title="included (class method)">.<strong>included</strong>(base) ⇒ Object </a>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
</span>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<span class="summary_desc"><div class='inline'>
|
204
|
+
<p>Dynamically adds accessor methods when the module is included in a class.</p>
|
205
|
+
</div></span>
|
206
|
+
|
207
|
+
</li>
|
208
|
+
|
209
|
+
|
210
|
+
</ul>
|
211
|
+
|
212
|
+
<h2>
|
213
|
+
Instance Method Summary
|
214
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
215
|
+
</h2>
|
216
|
+
|
217
|
+
<ul class="summary">
|
218
|
+
|
219
|
+
<li class="public ">
|
220
|
+
<span class="summary_signature">
|
221
|
+
|
222
|
+
<a href="#log_reading%3F-instance_method" title="#log_reading? (instance method)">#<strong>log_reading?</strong> ⇒ Boolean </a>
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</span>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<span class="summary_desc"><div class='inline'>
|
237
|
+
<p>Checks if the instance has log reading data.</p>
|
238
|
+
</div></span>
|
239
|
+
|
240
|
+
</li>
|
241
|
+
|
242
|
+
|
243
|
+
</ul>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
<div id="class_method_details" class="method_details_list">
|
249
|
+
<h2>Class Method Details</h2>
|
250
|
+
|
251
|
+
|
252
|
+
<div class="method_details first">
|
253
|
+
<h3 class="signature first" id="included-class_method">
|
254
|
+
|
255
|
+
.<strong>included</strong>(base) ⇒ <tt>Object</tt>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</h3><div class="docstring">
|
262
|
+
<div class="discussion">
|
263
|
+
|
264
|
+
<p>Dynamically adds accessor methods when the module is included in a class</p>
|
265
|
+
|
266
|
+
|
267
|
+
</div>
|
268
|
+
</div>
|
269
|
+
<div class="tags">
|
270
|
+
<p class="tag_title">Parameters:</p>
|
271
|
+
<ul class="param">
|
272
|
+
|
273
|
+
<li>
|
274
|
+
|
275
|
+
<span class='name'>base</span>
|
276
|
+
|
277
|
+
|
278
|
+
<span class='type'>(<tt>Class</tt>)</span>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
—
|
283
|
+
<div class='inline'>
|
284
|
+
<p>The class including this module</p>
|
285
|
+
</div>
|
286
|
+
|
287
|
+
</li>
|
288
|
+
|
289
|
+
</ul>
|
290
|
+
|
291
|
+
|
292
|
+
</div><table class="source_code">
|
293
|
+
<tr>
|
294
|
+
<td>
|
295
|
+
<pre class="lines">
|
296
|
+
|
297
|
+
|
298
|
+
32
|
299
|
+
33
|
300
|
+
34
|
301
|
+
35
|
302
|
+
36</pre>
|
303
|
+
</td>
|
304
|
+
<td>
|
305
|
+
<pre class="code"><span class="info file"># File 'lib/cdss/concerns/log_reading_attributes.rb', line 32</span>
|
306
|
+
|
307
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_included'>included</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span>
|
308
|
+
<span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_class_eval'>class_eval</span> <span class='kw'>do</span>
|
309
|
+
<span class='id identifier rubyid_attr_accessor'>attr_accessor</span><span class='lparen'>(</span><span class='op'>*</span><span class='const'><span class='object_link'><a href="#LOG_ATTRIBUTES-constant" title="Cdss::Concerns::LogReadingAttributes::LOG_ATTRIBUTES (constant)">LOG_ATTRIBUTES</a></span></span><span class='rparen'>)</span>
|
310
|
+
<span class='kw'>end</span>
|
311
|
+
<span class='kw'>end</span></pre>
|
312
|
+
</td>
|
313
|
+
</tr>
|
314
|
+
</table>
|
315
|
+
</div>
|
316
|
+
|
317
|
+
</div>
|
318
|
+
|
319
|
+
<div id="instance_method_details" class="method_details_list">
|
320
|
+
<h2>Instance Method Details</h2>
|
321
|
+
|
322
|
+
|
323
|
+
<div class="method_details first">
|
324
|
+
<h3 class="signature first" id="log_reading?-instance_method">
|
325
|
+
|
326
|
+
#<strong>log_reading?</strong> ⇒ <tt>Boolean</tt>
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
</h3><div class="docstring">
|
333
|
+
<div class="discussion">
|
334
|
+
|
335
|
+
<p>Checks if the instance has log reading data</p>
|
336
|
+
|
337
|
+
|
338
|
+
</div>
|
339
|
+
</div>
|
340
|
+
<div class="tags">
|
341
|
+
|
342
|
+
<div class="examples">
|
343
|
+
<h4 class="tag_title">Examples:</h4>
|
344
|
+
|
345
|
+
|
346
|
+
<h5 class="example_title"><div class='inline'>
|
347
|
+
<p>Check if a well log has reading data</p>
|
348
|
+
</div></h5>
|
349
|
+
|
350
|
+
<pre class="example code"><code><span class='id identifier rubyid_well_log'>well_log</span><span class='period'>.</span><span class='id identifier rubyid_log_reading?'>log_reading?</span> <span class='comment'># => true or false</span></code></pre>
|
351
|
+
|
352
|
+
</div>
|
353
|
+
|
354
|
+
<p class="tag_title">Returns:</p>
|
355
|
+
<ul class="return">
|
356
|
+
|
357
|
+
<li>
|
358
|
+
|
359
|
+
|
360
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
—
|
365
|
+
<div class='inline'>
|
366
|
+
<p>true if aquifer or log thickness is present, false otherwise</p>
|
367
|
+
</div>
|
368
|
+
|
369
|
+
</li>
|
370
|
+
|
371
|
+
</ul>
|
372
|
+
|
373
|
+
</div><table class="source_code">
|
374
|
+
<tr>
|
375
|
+
<td>
|
376
|
+
<pre class="lines">
|
377
|
+
|
378
|
+
|
379
|
+
43
|
380
|
+
44
|
381
|
+
45</pre>
|
382
|
+
</td>
|
383
|
+
<td>
|
384
|
+
<pre class="code"><span class="info file"># File 'lib/cdss/concerns/log_reading_attributes.rb', line 43</span>
|
385
|
+
|
386
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_log_reading?'>log_reading?</span>
|
387
|
+
<span class='op'>!</span><span class='id identifier rubyid_aquifer'>aquifer</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_g_log_thickness'>g_log_thickness</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
388
|
+
<span class='kw'>end</span></pre>
|
389
|
+
</td>
|
390
|
+
</tr>
|
391
|
+
</table>
|
392
|
+
</div>
|
393
|
+
|
394
|
+
</div>
|
395
|
+
|
396
|
+
</div>
|
397
|
+
|
398
|
+
<div id="footer">
|
399
|
+
Generated on Thu Feb 20 21:19:08 2025 by
|
400
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
|
+
0.9.37 (ruby-3.2.2).
|
402
|
+
</div>
|
403
|
+
|
404
|
+
</div>
|
405
|
+
</body>
|
406
|
+
</html>
|