usgs-ruby 1.0.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 +87 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE.txt +21 -0
- data/README.md +256 -0
- data/Rakefile +24 -0
- data/docs/Usgs/Client.html +563 -0
- data/docs/Usgs/DailyValues.html +338 -0
- data/docs/Usgs/InstantaneousValues.html +329 -0
- data/docs/Usgs/Models/Reading.html +1124 -0
- data/docs/Usgs/Models/Site.html +2030 -0
- data/docs/Usgs/Models/Statistic.html +3981 -0
- data/docs/Usgs/Models.html +117 -0
- data/docs/Usgs/Parser.html +346 -0
- data/docs/Usgs/Parsers/RdbParser.html +354 -0
- data/docs/Usgs/Parsers/SiteParser.html +174 -0
- data/docs/Usgs/Parsers/StatisticsParser.html +228 -0
- data/docs/Usgs/Parsers/TimeSeriesParser.html +189 -0
- data/docs/Usgs/Parsers.html +117 -0
- data/docs/Usgs/Site.html +445 -0
- data/docs/Usgs/Statistics.html +335 -0
- data/docs/Usgs/Utils.html +357 -0
- data/docs/Usgs.html +303 -0
- data/docs/_index.html +286 -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 +111 -0
- data/docs/file_list.html +59 -0
- data/docs/frames.html +22 -0
- data/docs/index.html +111 -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 +598 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/usgs/client.rb +62 -0
- data/lib/usgs/daily_values.rb +38 -0
- data/lib/usgs/instantaneous_values.rb +35 -0
- data/lib/usgs/models/reading.rb +43 -0
- data/lib/usgs/models/site.rb +61 -0
- data/lib/usgs/models/statistic.rb +95 -0
- data/lib/usgs/parser.rb +23 -0
- data/lib/usgs/parsers/rdb_parser.rb +55 -0
- data/lib/usgs/parsers/site_parser.rb +13 -0
- data/lib/usgs/parsers/statistics_parser.rb +40 -0
- data/lib/usgs/parsers/time_series_parser.rb +54 -0
- data/lib/usgs/site.rb +50 -0
- data/lib/usgs/statistics.rb +42 -0
- data/lib/usgs/utils.rb +50 -0
- data/lib/usgs/version.rb +5 -0
- data/lib/usgs.rb +28 -0
- data/sig/usgs/ruby.rbs +6 -0
- data/usgs-ruby.gemspec +48 -0
- metadata +231 -0
|
@@ -0,0 +1,354 @@
|
|
|
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: Usgs::Parsers::RdbParser
|
|
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 = "Usgs::Parsers::RdbParser";
|
|
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 (R)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Usgs.html" title="Usgs (module)">Usgs</a></span></span> » <span class='title'><span class='object_link'><a href="../Parsers.html" title="Usgs::Parsers (module)">Parsers</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">RdbParser</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: Usgs::Parsers::RdbParser
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<dl>
|
|
80
|
+
<dt>Defined in:</dt>
|
|
81
|
+
<dd>lib/usgs/parsers/rdb_parser.rb</dd>
|
|
82
|
+
</dl>
|
|
83
|
+
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<h2>
|
|
95
|
+
Class Method Summary
|
|
96
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
97
|
+
</h2>
|
|
98
|
+
|
|
99
|
+
<ul class="summary">
|
|
100
|
+
|
|
101
|
+
<li class="public ">
|
|
102
|
+
<span class="summary_signature">
|
|
103
|
+
|
|
104
|
+
<a href="#parse-class_method" title="parse (class method)">.<strong>parse</strong>(text) ⇒ Array<Hash> </a>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</span>
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<span class="summary_desc"><div class='inline'>
|
|
119
|
+
<p>Parse any USGS RDB response (format=rdb or rdb,1.0).</p>
|
|
120
|
+
</div></span>
|
|
121
|
+
|
|
122
|
+
</li>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<li class="public ">
|
|
126
|
+
<span class="summary_signature">
|
|
127
|
+
|
|
128
|
+
<a href="#parse_time_series-class_method" title="parse_time_series (class method)">.<strong>parse_time_series</strong>(text) ⇒ Object </a>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</span>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<span class="summary_desc"><div class='inline'>
|
|
143
|
+
<p>For time series (iv, dv, etc.).</p>
|
|
144
|
+
</div></span>
|
|
145
|
+
|
|
146
|
+
</li>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</ul>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<div id="class_method_details" class="method_details_list">
|
|
155
|
+
<h2>Class Method Details</h2>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<div class="method_details first">
|
|
159
|
+
<h3 class="signature first" id="parse-class_method">
|
|
160
|
+
|
|
161
|
+
.<strong>parse</strong>(text) ⇒ <tt>Array<Hash></tt>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
</h3><div class="docstring">
|
|
168
|
+
<div class="discussion">
|
|
169
|
+
|
|
170
|
+
<p>Parse any USGS RDB response (format=rdb or rdb,1.0)</p>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="tags">
|
|
176
|
+
<p class="tag_title">Parameters:</p>
|
|
177
|
+
<ul class="param">
|
|
178
|
+
|
|
179
|
+
<li>
|
|
180
|
+
|
|
181
|
+
<span class='name'>text</span>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
—
|
|
189
|
+
<div class='inline'>
|
|
190
|
+
<p>Raw RDB text</p>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
</li>
|
|
194
|
+
|
|
195
|
+
</ul>
|
|
196
|
+
|
|
197
|
+
<p class="tag_title">Returns:</p>
|
|
198
|
+
<ul class="return">
|
|
199
|
+
|
|
200
|
+
<li>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
<span class='type'>(<tt>Array<Hash></tt>)</span>
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
—
|
|
208
|
+
<div class='inline'>
|
|
209
|
+
<p>Rows with symbolized column names</p>
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
</li>
|
|
213
|
+
|
|
214
|
+
</ul>
|
|
215
|
+
|
|
216
|
+
</div><table class="source_code">
|
|
217
|
+
<tr>
|
|
218
|
+
<td>
|
|
219
|
+
<pre class="lines">
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
11
|
|
223
|
+
12
|
|
224
|
+
13
|
|
225
|
+
14
|
|
226
|
+
15
|
|
227
|
+
16
|
|
228
|
+
17
|
|
229
|
+
18
|
|
230
|
+
19
|
|
231
|
+
20
|
|
232
|
+
21
|
|
233
|
+
22
|
|
234
|
+
23
|
|
235
|
+
24
|
|
236
|
+
25
|
|
237
|
+
26
|
|
238
|
+
27
|
|
239
|
+
28
|
|
240
|
+
29
|
|
241
|
+
30
|
|
242
|
+
31
|
|
243
|
+
32
|
|
244
|
+
33</pre>
|
|
245
|
+
</td>
|
|
246
|
+
<td>
|
|
247
|
+
<pre class="code"><span class="info file"># File 'lib/usgs/parsers/rdb_parser.rb', line 11</span>
|
|
248
|
+
|
|
249
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='rparen'>)</span>
|
|
250
|
+
<span class='id identifier rubyid_lines'>lines</span> <span class='op'>=</span> <span class='id identifier rubyid_text'>text</span><span class='period'>.</span><span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:rstrip</span><span class='rparen'>)</span>
|
|
251
|
+
|
|
252
|
+
<span class='comment'># Drop all comment lines (#)
|
|
253
|
+
</span> <span class='id identifier rubyid_data_lines'>data_lines</span> <span class='op'>=</span> <span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_drop_while'>drop_while</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_l'>l</span><span class='op'>|</span> <span class='id identifier rubyid_l'>l</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
|
254
|
+
|
|
255
|
+
<span class='kw'>return</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_data_lines'>data_lines</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
|
256
|
+
|
|
257
|
+
<span class='id identifier rubyid_field_names_line'>field_names_line</span> <span class='op'>=</span> <span class='id identifier rubyid_data_lines'>data_lines</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
|
258
|
+
|
|
259
|
+
<span class='id identifier rubyid_data_start_index'>data_start_index</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='id identifier rubyid_data_lines'>data_lines</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='op'>&.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\A(\d+[sd])\t</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
|
|
260
|
+
<span class='int'>2</span>
|
|
261
|
+
<span class='kw'>else</span>
|
|
262
|
+
<span class='int'>1</span>
|
|
263
|
+
<span class='kw'>end</span>
|
|
264
|
+
|
|
265
|
+
<span class='id identifier rubyid_column_names'>column_names</span> <span class='op'>=</span> <span class='id identifier rubyid_field_names_line'>field_names_line</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\t</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
266
|
+
<span class='id identifier rubyid_data_lines'>data_lines</span><span class='lbracket'>[</span><span class='id identifier rubyid_data_start_index'>data_start_index</span><span class='op'>..</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span>
|
|
267
|
+
<span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>||</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
268
|
+
<span class='id identifier rubyid_values'>values</span> <span class='op'>=</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\t</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
269
|
+
<span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_column_names'>column_names</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_transform_keys'>transform_keys</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span> <span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='rbrace'>}</span>
|
|
270
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
|
|
271
|
+
<span class='kw'>end</span></pre>
|
|
272
|
+
</td>
|
|
273
|
+
</tr>
|
|
274
|
+
</table>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<div class="method_details ">
|
|
278
|
+
<h3 class="signature " id="parse_time_series-class_method">
|
|
279
|
+
|
|
280
|
+
.<strong>parse_time_series</strong>(text) ⇒ <tt>Object</tt>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
</h3><div class="docstring">
|
|
287
|
+
<div class="discussion">
|
|
288
|
+
|
|
289
|
+
<p>For time series (iv, dv, etc.)</p>
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="tags">
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
</div><table class="source_code">
|
|
298
|
+
<tr>
|
|
299
|
+
<td>
|
|
300
|
+
<pre class="lines">
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
36
|
|
304
|
+
37
|
|
305
|
+
38
|
|
306
|
+
39
|
|
307
|
+
40
|
|
308
|
+
41
|
|
309
|
+
42
|
|
310
|
+
43
|
|
311
|
+
44
|
|
312
|
+
45
|
|
313
|
+
46
|
|
314
|
+
47
|
|
315
|
+
48
|
|
316
|
+
49
|
|
317
|
+
50</pre>
|
|
318
|
+
</td>
|
|
319
|
+
<td>
|
|
320
|
+
<pre class="code"><span class="info file"># File 'lib/usgs/parsers/rdb_parser.rb', line 36</span>
|
|
321
|
+
|
|
322
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_time_series'>parse_time_series</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='rparen'>)</span>
|
|
323
|
+
<span class='id identifier rubyid_rows'>rows</span> <span class='op'>=</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='rparen'>)</span>
|
|
324
|
+
<span class='id identifier rubyid_rows'>rows</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_row'>row</span><span class='op'>|</span>
|
|
325
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span><span class='op'>&.</span><span class='id identifier rubyid_strip'>strip</span>
|
|
326
|
+
<span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-999999</span><span class='tstring_end'>"</span></span> <span class='op'>||</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>ice</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
327
|
+
|
|
328
|
+
<span class='lbrace'>{</span>
|
|
329
|
+
<span class='label'>site_no:</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:site_no</span><span class='rbracket'>]</span><span class='op'>&.</span><span class='id identifier rubyid_strip'>strip</span><span class='comma'>,</span>
|
|
330
|
+
<span class='label'>datetime:</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:datetime</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:dateTime</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
|
331
|
+
<span class='label'>value:</span> <span class='id identifier rubyid_value'>value</span><span class='op'>&.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='comma'>,</span>
|
|
332
|
+
<span class='label'>code:</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:value_cd</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:qualifiers</span><span class='rbracket'>]</span><span class='comma'>,</span>
|
|
333
|
+
<span class='label'>parameter_cd:</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:parameter_cd</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='symbol'>:parm_cd</span><span class='rbracket'>]</span>
|
|
334
|
+
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
|
|
335
|
+
<span class='kw'>end</span>
|
|
336
|
+
<span class='kw'>end</span></pre>
|
|
337
|
+
</td>
|
|
338
|
+
</tr>
|
|
339
|
+
</table>
|
|
340
|
+
</div>
|
|
341
|
+
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
</div>
|
|
345
|
+
|
|
346
|
+
<div id="footer">
|
|
347
|
+
Generated on Mon Dec 15 21:52:18 2025 by
|
|
348
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
349
|
+
0.9.37 (ruby-3.2.2).
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
</body>
|
|
354
|
+
</html>
|
|
@@ -0,0 +1,174 @@
|
|
|
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: Usgs::Parsers::SiteParser
|
|
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 = "Usgs::Parsers::SiteParser";
|
|
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 (S)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Usgs.html" title="Usgs (module)">Usgs</a></span></span> » <span class='title'><span class='object_link'><a href="../Parsers.html" title="Usgs::Parsers (module)">Parsers</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">SiteParser</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: Usgs::Parsers::SiteParser
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<dl>
|
|
80
|
+
<dt>Defined in:</dt>
|
|
81
|
+
<dd>lib/usgs/parsers/site_parser.rb</dd>
|
|
82
|
+
</dl>
|
|
83
|
+
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<h2>
|
|
95
|
+
Class Method Summary
|
|
96
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
97
|
+
</h2>
|
|
98
|
+
|
|
99
|
+
<ul class="summary">
|
|
100
|
+
|
|
101
|
+
<li class="public ">
|
|
102
|
+
<span class="summary_signature">
|
|
103
|
+
|
|
104
|
+
<a href="#parse_sites-class_method" title="parse_sites (class method)">.<strong>parse_sites</strong>(response) ⇒ Object </a>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</span>
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
119
|
+
|
|
120
|
+
</li>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
</ul>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<div id="class_method_details" class="method_details_list">
|
|
129
|
+
<h2>Class Method Details</h2>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
<div class="method_details first">
|
|
133
|
+
<h3 class="signature first" id="parse_sites-class_method">
|
|
134
|
+
|
|
135
|
+
.<strong>parse_sites</strong>(response) ⇒ <tt>Object</tt>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
</h3><table class="source_code">
|
|
142
|
+
<tr>
|
|
143
|
+
<td>
|
|
144
|
+
<pre class="lines">
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
7
|
|
148
|
+
8
|
|
149
|
+
9</pre>
|
|
150
|
+
</td>
|
|
151
|
+
<td>
|
|
152
|
+
<pre class="code"><span class="info file"># File 'lib/usgs/parsers/site_parser.rb', line 7</span>
|
|
153
|
+
|
|
154
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_parse_sites'>parse_sites</span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
|
|
155
|
+
<span class='id identifier rubyid_response'>response</span>
|
|
156
|
+
<span class='kw'>end</span></pre>
|
|
157
|
+
</td>
|
|
158
|
+
</tr>
|
|
159
|
+
</table>
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
</div>
|
|
165
|
+
|
|
166
|
+
<div id="footer">
|
|
167
|
+
Generated on Mon Dec 15 21:52:18 2025 by
|
|
168
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
169
|
+
0.9.37 (ruby-3.2.2).
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
</body>
|
|
174
|
+
</html>
|