xbrlware-ce 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile.rb +4 -4
- data/Readme.txt +6 -1
- data/ReleaseNotes.txt +22 -5
- data/doc/classes/Edgar/HTMLFeedDownloader.html +8 -8
- data/doc/classes/Edgar/RSSFeedDownloader.html +15 -15
- data/doc/classes/Xbrlware.html +22 -0
- data/doc/classes/Xbrlware/Context.html +104 -74
- data/doc/classes/Xbrlware/Context/Period.html +305 -0
- data/doc/classes/Xbrlware/Entity.html +75 -51
- data/doc/classes/Xbrlware/Identifier.html +17 -17
- data/doc/classes/Xbrlware/Instance.html +165 -137
- data/doc/classes/Xbrlware/Item.html +19 -19
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +1 -1
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +2 -2
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link.html +9 -3
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +4 -4
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +1 -1
- data/doc/classes/Xbrlware/Report.html +352 -0
- data/doc/classes/Xbrlware/Taxonomy.html +48 -48
- data/doc/classes/Xbrlware/TaxonomyDefintion.html +15 -15
- data/doc/classes/Xbrlware/Unit.html +6 -6
- data/doc/classes/Xbrlware/Unit/Divide.html +6 -6
- data/doc/created.rid +1 -1
- data/doc/files/Readme_txt.html +9 -1
- data/doc/files/lib/xbrlware/context_rb.html +1 -1
- data/doc/files/lib/xbrlware/date_util_rb.html +1 -1
- data/doc/files/lib/xbrlware/instance_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html +1 -1
- data/doc/files/lib/xbrlware/meta_util_rb.html +1 -1
- data/doc/files/lib/xbrlware/report_rb.html +101 -0
- data/doc/files/lib/xbrlware/taxonomy_rb.html +1 -1
- data/doc/files/lib/xbrlware/version_rb.html +129 -0
- data/doc/fr_class_index.html +2 -0
- data/doc/fr_file_index.html +2 -0
- data/doc/fr_method_index.html +75 -62
- data/example/case_study/buy_strategy.rb +1 -1
- data/example/case_study/c_sell_strategy.rb +1 -1
- data/lib/xbrlware/context.rb +77 -34
- data/lib/xbrlware/date_util.rb +16 -6
- data/lib/xbrlware/instance.rb +35 -28
- data/lib/xbrlware/linkbase/calculation_linkbase.rb +1 -1
- data/lib/xbrlware/linkbase/definition_linkbase.rb +2 -2
- data/lib/xbrlware/linkbase/linkbase.rb +3 -2
- data/lib/xbrlware/linkbase/presentation_linkbase.rb +1 -1
- data/lib/xbrlware/meta_util.rb +5 -0
- data/lib/xbrlware/report.rb +277 -0
- data/lib/xbrlware/taxonomy.rb +13 -10
- data/lib/xbrlware/version.rb +22 -0
- data/test/lib/xbrlware/47_context_test.rb +13 -4
- data/test/lib/xbrlware/date_util_test.rb +10 -2
- data/test/lib/xbrlware/instance_test.rb +19 -0
- data/test/lib/xbrlware/meta_util_test.rb +21 -1
- metadata +10 -4
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000073">new</a>
|
90
|
+
<a href="#M000074">to_s</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -127,22 +127,22 @@
|
|
127
127
|
<div id="methods">
|
128
128
|
<h3 class="section-bar">Public Class methods</h3>
|
129
129
|
|
130
|
-
<div id="method-
|
131
|
-
<a name="
|
130
|
+
<div id="method-M000073" class="method-detail">
|
131
|
+
<a name="M000073"></a>
|
132
132
|
|
133
133
|
<div class="method-heading">
|
134
|
-
<a href="#
|
135
|
-
<span class="method-name">new</span><span class="method-args">(scheme,value)</span>
|
134
|
+
<a href="#M000073" class="method-signature">
|
135
|
+
<span class="method-name">new</span><span class="method-args">(scheme, value)</span>
|
136
136
|
</a>
|
137
137
|
</div>
|
138
138
|
|
139
139
|
<div class="method-description">
|
140
140
|
<p><a class="source-toggle" href="#"
|
141
|
-
onclick="toggleCode('
|
142
|
-
<div class="method-source-code" id="
|
141
|
+
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
142
|
+
<div class="method-source-code" id="M000073-source">
|
143
143
|
<pre>
|
144
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
145
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">scheme</span
|
144
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 182</span>
|
145
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">scheme</span>, <span class="ruby-identifier">value</span>)
|
146
146
|
<span class="ruby-ivar">@scheme</span> = <span class="ruby-identifier">scheme</span>
|
147
147
|
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
|
148
148
|
<span class="ruby-keyword kw">end</span>
|
@@ -153,23 +153,23 @@
|
|
153
153
|
|
154
154
|
<h3 class="section-bar">Public Instance methods</h3>
|
155
155
|
|
156
|
-
<div id="method-
|
157
|
-
<a name="
|
156
|
+
<div id="method-M000074" class="method-detail">
|
157
|
+
<a name="M000074"></a>
|
158
158
|
|
159
159
|
<div class="method-heading">
|
160
|
-
<a href="#
|
160
|
+
<a href="#M000074" class="method-signature">
|
161
161
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
162
162
|
</a>
|
163
163
|
</div>
|
164
164
|
|
165
165
|
<div class="method-description">
|
166
166
|
<p><a class="source-toggle" href="#"
|
167
|
-
onclick="toggleCode('
|
168
|
-
<div class="method-source-code" id="
|
167
|
+
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
168
|
+
<div class="method-source-code" id="M000074-source">
|
169
169
|
<pre>
|
170
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
170
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 187</span>
|
171
171
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
172
|
-
<span class="ruby-value str">"schema ["</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@scheme</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"], value ["</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"]"</span>
|
172
|
+
<span class="ruby-value str">"schema ["</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@scheme</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"], value ["</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@value</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"]"</span>
|
173
173
|
<span class="ruby-keyword kw">end</span>
|
174
174
|
</pre>
|
175
175
|
</div>
|
@@ -95,21 +95,22 @@ instance page on xbrlware wiki</a> for more details.
|
|
95
95
|
<h3 class="section-bar">Methods</h3>
|
96
96
|
|
97
97
|
<div class="name-list">
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
98
|
+
<a href="#M000078">context</a>
|
99
|
+
<a href="#M000086">context_for_item</a>
|
100
|
+
<a href="#M000079">ctx_groupby_dim</a>
|
101
|
+
<a href="#M000082">ctx_groupby_dim_dom_print</a>
|
102
|
+
<a href="#M000080">ctx_groupby_dom</a>
|
103
|
+
<a href="#M000081">ctx_groupby_period</a>
|
104
|
+
<a href="#M000090">entity_details</a>
|
105
|
+
<a href="#M000089">entity_details=</a>
|
106
|
+
<a href="#M000088">footnotes</a>
|
107
|
+
<a href="#M000085">item</a>
|
108
|
+
<a href="#M000084">item_all_map</a>
|
109
|
+
<a href="#M000087">item_ctx_filter</a>
|
110
|
+
<a href="#M000075">new</a>
|
111
|
+
<a href="#M000076">raw</a>
|
112
|
+
<a href="#M000077">schema_ref</a>
|
113
|
+
<a href="#M000083">unit</a>
|
113
114
|
</div>
|
114
115
|
</div>
|
115
116
|
|
@@ -144,11 +145,11 @@ instance page on xbrlware wiki</a> for more details.
|
|
144
145
|
<div id="methods">
|
145
146
|
<h3 class="section-bar">Public Class methods</h3>
|
146
147
|
|
147
|
-
<div id="method-
|
148
|
-
<a name="
|
148
|
+
<div id="method-M000075" class="method-detail">
|
149
|
+
<a name="M000075"></a>
|
149
150
|
|
150
151
|
<div class="method-heading">
|
151
|
-
<a href="#
|
152
|
+
<a href="#M000075" class="method-signature">
|
152
153
|
<span class="method-name">new</span><span class="method-args">(instance_filepath, taxonomy_filepath=nil)</span>
|
153
154
|
</a>
|
154
155
|
</div>
|
@@ -171,16 +172,16 @@ taxonomy file in the instance document will be ignored
|
|
171
172
|
<p>
|
172
173
|
Expects instance source is well-formatted and valid Sometimes instance
|
173
174
|
document contains large chunk of HTML content with <a
|
174
|
-
href="Instance.html#
|
175
|
+
href="Instance.html#M000075">new</a> lines in-between, which will cause
|
175
176
|
parsing error. Hence any exceptions during instance source parsing, will
|
176
177
|
trigger re-parsing of the entire instnace file with <a
|
177
|
-
href="Instance.html#
|
178
|
+
href="Instance.html#M000075">new</a> lines replaced. Look at <a
|
178
179
|
href="http://code.google.com/p/xbrlware/wiki/InstanceTaxonomy">delaing with
|
179
180
|
instance page on xbrlware wiki</a> for details.
|
180
181
|
</p>
|
181
182
|
<p><a class="source-toggle" href="#"
|
182
|
-
onclick="toggleCode('
|
183
|
-
<div class="method-source-code" id="
|
183
|
+
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
184
|
+
<div class="method-source-code" id="M000075-source">
|
184
185
|
<pre>
|
185
186
|
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 42</span>
|
186
187
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">instance_filepath</span>, <span class="ruby-identifier">taxonomy_filepath</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -202,6 +203,7 @@ instance page on xbrlware wiki</a> for details.
|
|
202
203
|
<span class="ruby-keyword kw">end</span>
|
203
204
|
|
204
205
|
<span class="ruby-ivar">@taxonomy</span>=<span class="ruby-constant">Xbrlware</span><span class="ruby-operator">::</span><span class="ruby-constant">Taxonomy</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">taxonomy_filepath</span>, <span class="ruby-keyword kw">self</span>)
|
206
|
+
<span class="ruby-ivar">@entity_details</span>=<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"UNKNOWN"</span>)
|
205
207
|
<span class="ruby-keyword kw">end</span>
|
206
208
|
</pre>
|
207
209
|
</div>
|
@@ -210,11 +212,11 @@ instance page on xbrlware wiki</a> for details.
|
|
210
212
|
|
211
213
|
<h3 class="section-bar">Public Instance methods</h3>
|
212
214
|
|
213
|
-
<div id="method-
|
214
|
-
<a name="
|
215
|
+
<div id="method-M000078" class="method-detail">
|
216
|
+
<a name="M000078"></a>
|
215
217
|
|
216
218
|
<div class="method-heading">
|
217
|
-
<a href="#
|
219
|
+
<a href="#M000078" class="method-signature">
|
218
220
|
<span class="method-name">context</span><span class="method-args">(context_id=nil, dimensions=[])</span>
|
219
221
|
</a>
|
220
222
|
</div>
|
@@ -229,10 +231,10 @@ Takes optional context_id as string and dimensions as array
|
|
229
231
|
Returns nil if context_id or dimensions is passed and no matching context exist
|
230
232
|
</pre>
|
231
233
|
<p><a class="source-toggle" href="#"
|
232
|
-
onclick="toggleCode('
|
233
|
-
<div class="method-source-code" id="
|
234
|
+
onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
|
235
|
+
<div class="method-source-code" id="M000078-source">
|
234
236
|
<pre>
|
235
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
237
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 81</span>
|
236
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">context</span>(<span class="ruby-identifier">context_id</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">dimensions</span>=[])
|
237
239
|
<span class="ruby-identifier">all_contexts</span>= <span class="ruby-identifier">context_by_id</span>(<span class="ruby-identifier">context_id</span>)
|
238
240
|
|
@@ -254,28 +256,28 @@ Takes optional context_id as string and dimensions as array
|
|
254
256
|
</div>
|
255
257
|
</div>
|
256
258
|
|
257
|
-
<div id="method-
|
258
|
-
<a name="
|
259
|
+
<div id="method-M000086" class="method-detail">
|
260
|
+
<a name="M000086"></a>
|
259
261
|
|
260
262
|
<div class="method-heading">
|
261
|
-
<a href="#
|
263
|
+
<a href="#M000086" class="method-signature">
|
262
264
|
<span class="method-name">context_for_item</span><span class="method-args">(item_name)</span>
|
263
265
|
</a>
|
264
266
|
</div>
|
265
267
|
|
266
268
|
<div class="method-description">
|
267
269
|
<p>
|
268
|
-
Takes <a href="Instance.html#
|
270
|
+
Takes <a href="Instance.html#M000085">item</a> name
|
269
271
|
</p>
|
270
272
|
<pre>
|
271
273
|
Returns array of contexts for given item name
|
272
274
|
Returns empty array if no item with given name found
|
273
275
|
</pre>
|
274
276
|
<p><a class="source-toggle" href="#"
|
275
|
-
onclick="toggleCode('
|
276
|
-
<div class="method-source-code" id="
|
277
|
+
onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
|
278
|
+
<div class="method-source-code" id="M000086-source">
|
277
279
|
<pre>
|
278
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
280
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 313</span>
|
279
281
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">context_for_item</span>(<span class="ruby-identifier">item_name</span>)
|
280
282
|
<span class="ruby-identifier">contexts</span>=[]
|
281
283
|
<span class="ruby-identifier">items</span> = <span class="ruby-identifier">item</span>(<span class="ruby-identifier">item_name</span>)
|
@@ -287,11 +289,11 @@ Takes <a href="Instance.html#M000073">item</a> name
|
|
287
289
|
</div>
|
288
290
|
</div>
|
289
291
|
|
290
|
-
<div id="method-
|
291
|
-
<a name="
|
292
|
+
<div id="method-M000079" class="method-detail">
|
293
|
+
<a name="M000079"></a>
|
292
294
|
|
293
295
|
<div class="method-heading">
|
294
|
-
<a href="#
|
296
|
+
<a href="#M000079" class="method-signature">
|
295
297
|
<span class="method-name">ctx_groupby_dim</span><span class="method-args">()</span>
|
296
298
|
</a>
|
297
299
|
</div>
|
@@ -302,10 +304,10 @@ Returns contexts grouped by dimension as map. Map contains dimension as key
|
|
302
304
|
and corresponding contexts as value
|
303
305
|
</p>
|
304
306
|
<p><a class="source-toggle" href="#"
|
305
|
-
onclick="toggleCode('
|
306
|
-
<div class="method-source-code" id="
|
307
|
+
onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
|
308
|
+
<div class="method-source-code" id="M000079-source">
|
307
309
|
<pre>
|
308
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
310
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 99</span>
|
309
311
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ctx_groupby_dim</span>
|
310
312
|
<span class="ruby-identifier">dim_group</span>={}
|
311
313
|
<span class="ruby-identifier">all_contexts</span>= <span class="ruby-identifier">context</span>
|
@@ -323,11 +325,11 @@ and corresponding contexts as value
|
|
323
325
|
</div>
|
324
326
|
</div>
|
325
327
|
|
326
|
-
<div id="method-
|
327
|
-
<a name="
|
328
|
+
<div id="method-M000082" class="method-detail">
|
329
|
+
<a name="M000082"></a>
|
328
330
|
|
329
331
|
<div class="method-heading">
|
330
|
-
<a href="#
|
332
|
+
<a href="#M000082" class="method-signature">
|
331
333
|
<span class="method-name">ctx_groupby_dim_dom_print</span><span class="method-args">()</span>
|
332
334
|
</a>
|
333
335
|
</div>
|
@@ -335,14 +337,14 @@ and corresponding contexts as value
|
|
335
337
|
<div class="method-description">
|
336
338
|
<p>
|
337
339
|
Prints dimension -> domain -> <a
|
338
|
-
href="Instance.html#
|
340
|
+
href="Instance.html#M000078">context</a> relationship for all contexts in
|
339
341
|
the console.
|
340
342
|
</p>
|
341
343
|
<p><a class="source-toggle" href="#"
|
342
|
-
onclick="toggleCode('
|
343
|
-
<div class="method-source-code" id="
|
344
|
+
onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
|
345
|
+
<div class="method-source-code" id="M000082-source">
|
344
346
|
<pre>
|
345
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
347
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 141</span>
|
346
348
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ctx_groupby_dim_dom_print</span>
|
347
349
|
<span class="ruby-identifier">group_dim</span>=<span class="ruby-identifier">ctx_groupby_dim</span>
|
348
350
|
<span class="ruby-identifier">group_dim</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">dimension</span><span class="ruby-operator">|</span>
|
@@ -361,11 +363,11 @@ the console.
|
|
361
363
|
</div>
|
362
364
|
</div>
|
363
365
|
|
364
|
-
<div id="method-
|
365
|
-
<a name="
|
366
|
+
<div id="method-M000080" class="method-detail">
|
367
|
+
<a name="M000080"></a>
|
366
368
|
|
367
369
|
<div class="method-heading">
|
368
|
-
<a href="#
|
370
|
+
<a href="#M000080" class="method-signature">
|
369
371
|
<span class="method-name">ctx_groupby_dom</span><span class="method-args">(dimensions=[])</span>
|
370
372
|
</a>
|
371
373
|
</div>
|
@@ -378,10 +380,10 @@ Takes optional dimensions as array
|
|
378
380
|
Returns contexts group by domain as map. Map contains domain as key and corresponding contexts as value
|
379
381
|
</pre>
|
380
382
|
<p><a class="source-toggle" href="#"
|
381
|
-
onclick="toggleCode('
|
382
|
-
<div class="method-source-code" id="
|
383
|
+
onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
|
384
|
+
<div class="method-source-code" id="M000080-source">
|
383
385
|
<pre>
|
384
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
386
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 114</span>
|
385
387
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ctx_groupby_dom</span>(<span class="ruby-identifier">dimensions</span>=[])
|
386
388
|
<span class="ruby-identifier">dom_group</span>={}
|
387
389
|
<span class="ruby-identifier">all_contexts</span>= <span class="ruby-identifier">context</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">dimensions</span>)
|
@@ -399,11 +401,11 @@ Takes optional dimensions as array
|
|
399
401
|
</div>
|
400
402
|
</div>
|
401
403
|
|
402
|
-
<div id="method-
|
403
|
-
<a name="
|
404
|
+
<div id="method-M000081" class="method-detail">
|
405
|
+
<a name="M000081"></a>
|
404
406
|
|
405
407
|
<div class="method-heading">
|
406
|
-
<a href="#
|
408
|
+
<a href="#M000081" class="method-signature">
|
407
409
|
<span class="method-name">ctx_groupby_period</span><span class="method-args">(dimensions=[])</span>
|
408
410
|
</a>
|
409
411
|
</div>
|
@@ -416,10 +418,10 @@ Takes optional dimensions as array
|
|
416
418
|
Returns contexts group by period as map. Map contains period as key and corresponding contexts as value
|
417
419
|
</pre>
|
418
420
|
<p><a class="source-toggle" href="#"
|
419
|
-
onclick="toggleCode('
|
420
|
-
<div class="method-source-code" id="
|
421
|
+
onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
|
422
|
+
<div class="method-source-code" id="M000081-source">
|
421
423
|
<pre>
|
422
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
424
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 129</span>
|
423
425
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ctx_groupby_period</span>(<span class="ruby-identifier">dimensions</span>=[])
|
424
426
|
<span class="ruby-identifier">period_group</span>={}
|
425
427
|
<span class="ruby-identifier">all_contexts</span>= <span class="ruby-identifier">context</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">dimensions</span>)
|
@@ -435,48 +437,51 @@ Takes optional dimensions as array
|
|
435
437
|
</div>
|
436
438
|
</div>
|
437
439
|
|
438
|
-
<div id="method-
|
439
|
-
<a name="
|
440
|
+
<div id="method-M000090" class="method-detail">
|
441
|
+
<a name="M000090"></a>
|
440
442
|
|
441
443
|
<div class="method-heading">
|
442
|
-
<a href="#
|
444
|
+
<a href="#M000090" class="method-signature">
|
443
445
|
<span class="method-name">entity_details</span><span class="method-args">()</span>
|
444
446
|
</a>
|
445
447
|
</div>
|
446
448
|
|
447
449
|
<div class="method-description">
|
448
450
|
<p><a class="source-toggle" href="#"
|
449
|
-
onclick="toggleCode('
|
450
|
-
<div class="method-source-code" id="
|
451
|
+
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
452
|
+
<div class="method-source-code" id="M000090-source">
|
451
453
|
<pre>
|
452
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
454
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 356</span>
|
453
455
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity_details</span>
|
454
|
-
<span class="ruby-ivar">@entity_details</span>={}
|
455
456
|
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@entity_details</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>
|
456
|
-
<span class="ruby-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
457
|
+
<span class="ruby-keyword kw">begin</span>
|
458
|
+
<span class="ruby-comment cmt"># Specific to US filing </span>
|
459
|
+
<span class="ruby-identifier">e_name</span>=<span class="ruby-identifier">item</span>(<span class="ruby-value str">"EntityRegistrantName"</span>)[<span class="ruby-value">0</span>]
|
460
|
+
<span class="ruby-identifier">e_ci_key</span>=<span class="ruby-identifier">item</span>(<span class="ruby-value str">"EntityCentralIndexKey"</span>)[<span class="ruby-value">0</span>]
|
461
|
+
<span class="ruby-identifier">e_doc_type</span>=<span class="ruby-identifier">item</span>(<span class="ruby-value str">"DocumentType"</span>)[<span class="ruby-value">0</span>]
|
462
|
+
<span class="ruby-identifier">e_doc_end_type</span>=<span class="ruby-identifier">item</span>(<span class="ruby-value str">"DocumentPeriodEndDate"</span>)[<span class="ruby-value">0</span>]
|
463
|
+
|
464
|
+
<span class="ruby-identifier">fedate</span>=<span class="ruby-identifier">item</span>(<span class="ruby-value str">"CurrentFiscalYearEndDate"</span>)
|
465
|
+
<span class="ruby-identifier">e_fiscal_end_date</span>=<span class="ruby-identifier">fedate</span>[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">fedate</span>.<span class="ruby-identifier">nil?</span>
|
466
|
+
|
467
|
+
<span class="ruby-identifier">shares_outstanding</span> = <span class="ruby-identifier">item</span>(<span class="ruby-value str">"EntityCommonStockSharesOutstanding"</span>)
|
468
|
+
<span class="ruby-identifier">e_common_shares_outstanding</span>=<span class="ruby-identifier">shares_outstanding</span>[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">shares_outstanding</span>.<span class="ruby-identifier">nil?</span>
|
469
|
+
|
470
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"name"</span>]=<span class="ruby-identifier">e_name</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e_name</span>.<span class="ruby-identifier">nil?</span>
|
471
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"ci_key"</span>]=<span class="ruby-identifier">e_ci_key</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e_ci_key</span>.<span class="ruby-identifier">nil?</span>
|
472
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"doc_type"</span>]=<span class="ruby-identifier">e_doc_type</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e_doc_type</span>.<span class="ruby-identifier">nil?</span>
|
473
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"doc_end_date"</span>]=<span class="ruby-identifier">e_doc_end_type</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e_doc_end_type</span>.<span class="ruby-identifier">nil?</span>
|
474
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"fiscal_end_date"</span>]=<span class="ruby-identifier">e_fiscal_end_date</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e_fiscal_end_date</span>.<span class="ruby-identifier">nil?</span>
|
475
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"common_shares_outstanding"</span>]=<span class="ruby-identifier">e_common_shares_outstanding</span>.<span class="ruby-identifier">value</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">e_common_shares_outstanding</span>.<span class="ruby-identifier">nil?</span>
|
476
|
+
|
477
|
+
<span class="ruby-identifier">file_name</span>=<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-ivar">@file_name</span>)
|
478
|
+
<span class="ruby-identifier">symbol</span>=<span class="ruby-identifier">file_name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"-"</span>)[<span class="ruby-value">0</span>]
|
479
|
+
<span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">upcase!</span>
|
480
|
+
|
481
|
+
<span class="ruby-ivar">@entity_details</span>[<span class="ruby-value str">"symbol"</span>]=<span class="ruby-identifier">symbol</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">nil?</span>
|
482
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
483
|
+
<span class="ruby-ivar">@entity_details</span>
|
484
|
+
<span class="ruby-keyword kw">end</span>
|
480
485
|
<span class="ruby-keyword kw">end</span>
|
481
486
|
<span class="ruby-ivar">@entity_details</span>
|
482
487
|
<span class="ruby-keyword kw">end</span>
|
@@ -485,18 +490,41 @@ Takes optional dimensions as array
|
|
485
490
|
</div>
|
486
491
|
</div>
|
487
492
|
|
488
|
-
<div id="method-
|
489
|
-
<a name="
|
493
|
+
<div id="method-M000089" class="method-detail">
|
494
|
+
<a name="M000089"></a>
|
490
495
|
|
491
496
|
<div class="method-heading">
|
492
|
-
<a href="#
|
497
|
+
<a href="#M000089" class="method-signature">
|
498
|
+
<span class="method-name">entity_details=</span><span class="method-args">(value)</span>
|
499
|
+
</a>
|
500
|
+
</div>
|
501
|
+
|
502
|
+
<div class="method-description">
|
503
|
+
<p><a class="source-toggle" href="#"
|
504
|
+
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
505
|
+
<div class="method-source-code" id="M000089-source">
|
506
|
+
<pre>
|
507
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 352</span>
|
508
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity_details=</span>(<span class="ruby-identifier">value</span>)
|
509
|
+
<span class="ruby-ivar">@entity_details</span>.<span class="ruby-identifier">merge!</span>(<span class="ruby-identifier">value</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
510
|
+
<span class="ruby-keyword kw">end</span>
|
511
|
+
</pre>
|
512
|
+
</div>
|
513
|
+
</div>
|
514
|
+
</div>
|
515
|
+
|
516
|
+
<div id="method-M000088" class="method-detail">
|
517
|
+
<a name="M000088"></a>
|
518
|
+
|
519
|
+
<div class="method-heading">
|
520
|
+
<a href="#M000088" class="method-signature">
|
493
521
|
<span class="method-name">footnotes</span><span class="method-args">(item_id=nil, lang=nil)</span>
|
494
522
|
</a>
|
495
523
|
</div>
|
496
524
|
|
497
525
|
<div class="method-description">
|
498
526
|
<p>
|
499
|
-
Takes optional <a href="Instance.html#
|
527
|
+
Takes optional <a href="Instance.html#M000085">item</a> id and language
|
500
528
|
</p>
|
501
529
|
<pre>
|
502
530
|
Every item in XBRL instance file may contain optional id element.
|
@@ -507,10 +535,10 @@ Takes optional <a href="Instance.html#M000073">item</a> id and language
|
|
507
535
|
Returns nil if no match found for item_it or footnotes not exist
|
508
536
|
</pre>
|
509
537
|
<p><a class="source-toggle" href="#"
|
510
|
-
onclick="toggleCode('
|
511
|
-
<div class="method-source-code" id="
|
538
|
+
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
539
|
+
<div class="method-source-code" id="M000088-source">
|
512
540
|
<pre>
|
513
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
541
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 342</span>
|
514
542
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">footnotes</span> (<span class="ruby-identifier">item_id</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">lang</span>=<span class="ruby-keyword kw">nil</span>)
|
515
543
|
<span class="ruby-ivar">@item_footnote_map</span>=<span class="ruby-keyword kw">nil</span>
|
516
544
|
<span class="ruby-identifier">raise</span> <span class="ruby-value str">" lang can't be passed when item id is nil"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">item_id</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> (<span class="ruby-keyword kw">not</span> <span class="ruby-identifier">lang</span>.<span class="ruby-identifier">nil?</span>)
|
@@ -525,11 +553,11 @@ Takes optional <a href="Instance.html#M000073">item</a> id and language
|
|
525
553
|
</div>
|
526
554
|
</div>
|
527
555
|
|
528
|
-
<div id="method-
|
529
|
-
<a name="
|
556
|
+
<div id="method-M000085" class="method-detail">
|
557
|
+
<a name="M000085"></a>
|
530
558
|
|
531
559
|
<div class="method-heading">
|
532
|
-
<a href="#
|
560
|
+
<a href="#M000085" class="method-signature">
|
533
561
|
<span class="method-name">item</span><span class="method-args">(name, context_ref=nil, unit_ref=nil)</span>
|
534
562
|
</a>
|
535
563
|
</div>
|
@@ -543,10 +571,10 @@ Takes name and optional context_ref and unit_ref
|
|
543
571
|
Returns empty array if item is not found
|
544
572
|
</pre>
|
545
573
|
<p><a class="source-toggle" href="#"
|
546
|
-
onclick="toggleCode('
|
547
|
-
<div class="method-source-code" id="
|
574
|
+
onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
|
575
|
+
<div class="method-source-code" id="M000085-source">
|
548
576
|
<pre>
|
549
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
577
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 291</span>
|
550
578
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">item</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">context_ref</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">unit_ref</span>=<span class="ruby-keyword kw">nil</span>)
|
551
579
|
|
552
580
|
<span class="ruby-identifier">item_content</span> = <span class="ruby-ivar">@xbrl_content</span>[<span class="ruby-identifier">name</span>]
|
@@ -570,21 +598,21 @@ Takes name and optional context_ref and unit_ref
|
|
570
598
|
</div>
|
571
599
|
</div>
|
572
600
|
|
573
|
-
<div id="method-
|
574
|
-
<a name="
|
601
|
+
<div id="method-M000084" class="method-detail">
|
602
|
+
<a name="M000084"></a>
|
575
603
|
|
576
604
|
<div class="method-heading">
|
577
|
-
<a href="#
|
605
|
+
<a href="#M000084" class="method-signature">
|
578
606
|
<span class="method-name">item_all_map</span><span class="method-args">()</span>
|
579
607
|
</a>
|
580
608
|
</div>
|
581
609
|
|
582
610
|
<div class="method-description">
|
583
611
|
<p><a class="source-toggle" href="#"
|
584
|
-
onclick="toggleCode('
|
585
|
-
<div class="method-source-code" id="
|
612
|
+
onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
|
613
|
+
<div class="method-source-code" id="M000084-source">
|
586
614
|
<pre>
|
587
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
615
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 274</span>
|
588
616
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">item_all_map</span>
|
589
617
|
<span class="ruby-identifier">all_items</span> = <span class="ruby-ivar">@xbrl_content</span>
|
590
618
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">all_items</span>.<span class="ruby-identifier">nil?</span>
|
@@ -594,7 +622,7 @@ Takes name and optional context_ref and unit_ref
|
|
594
622
|
<span class="ruby-identifier">all_items</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">item_content</span><span class="ruby-operator">|</span>
|
595
623
|
<span class="ruby-identifier">_name</span>=<span class="ruby-identifier">name</span>.<span class="ruby-identifier">upcase</span>
|
596
624
|
<span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">_name</span><span class="ruby-operator">==</span><span class="ruby-value str">"CONTEXT"</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">_name</span><span class="ruby-operator">==</span><span class="ruby-value str">"UNIT"</span>
|
597
|
-
<span class="ruby-identifier">items_hash</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">upcase</span>] = <span class="ruby-identifier">item</span>(<span class="ruby-identifier">name</span>)
|
625
|
+
<span class="ruby-identifier">items_hash</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">upcase</span>] = <span class="ruby-identifier">item</span>(<span class="ruby-identifier">name</span>)
|
598
626
|
<span class="ruby-keyword kw">end</span>
|
599
627
|
<span class="ruby-identifier">items_hash</span>
|
600
628
|
<span class="ruby-keyword kw">end</span>
|
@@ -603,28 +631,28 @@ Takes name and optional context_ref and unit_ref
|
|
603
631
|
</div>
|
604
632
|
</div>
|
605
633
|
|
606
|
-
<div id="method-
|
607
|
-
<a name="
|
634
|
+
<div id="method-M000087" class="method-detail">
|
635
|
+
<a name="M000087"></a>
|
608
636
|
|
609
637
|
<div class="method-heading">
|
610
|
-
<a href="#
|
638
|
+
<a href="#M000087" class="method-signature">
|
611
639
|
<span class="method-name">item_ctx_filter</span><span class="method-args">(name) {|item.context| ...}</span>
|
612
640
|
</a>
|
613
641
|
</div>
|
614
642
|
|
615
643
|
<div class="method-description">
|
616
644
|
<p>
|
617
|
-
Takes <a href="Instance.html#
|
645
|
+
Takes <a href="Instance.html#M000085">item</a> name and filter block
|
618
646
|
</p>
|
619
647
|
<pre>
|
620
648
|
Fetches item with name and invokes filter block with item context
|
621
649
|
Returns matched items.
|
622
650
|
</pre>
|
623
651
|
<p><a class="source-toggle" href="#"
|
624
|
-
onclick="toggleCode('
|
625
|
-
<div class="method-source-code" id="
|
652
|
+
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
653
|
+
<div class="method-source-code" id="M000087-source">
|
626
654
|
<pre>
|
627
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
655
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 324</span>
|
628
656
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">item_ctx_filter</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">context_filter_block</span>)
|
629
657
|
<span class="ruby-identifier">items</span>=<span class="ruby-identifier">item</span>(<span class="ruby-identifier">name</span>)
|
630
658
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">items</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context_filter_block</span>.<span class="ruby-identifier">nil?</span>
|
@@ -639,25 +667,25 @@ Takes <a href="Instance.html#M000073">item</a> name and filter block
|
|
639
667
|
</div>
|
640
668
|
</div>
|
641
669
|
|
642
|
-
<div id="method-
|
643
|
-
<a name="
|
670
|
+
<div id="method-M000076" class="method-detail">
|
671
|
+
<a name="M000076"></a>
|
644
672
|
|
645
673
|
<div class="method-heading">
|
646
|
-
<a href="#
|
674
|
+
<a href="#M000076" class="method-signature">
|
647
675
|
<span class="method-name">raw</span><span class="method-args">()</span>
|
648
676
|
</a>
|
649
677
|
</div>
|
650
678
|
|
651
679
|
<div class="method-description">
|
652
680
|
<p>
|
653
|
-
Returns <a href="Instance.html#
|
681
|
+
Returns <a href="Instance.html#M000076">raw</a> content of instance file in
|
654
682
|
the form of Hash
|
655
683
|
</p>
|
656
684
|
<p><a class="source-toggle" href="#"
|
657
|
-
onclick="toggleCode('
|
658
|
-
<div class="method-source-code" id="
|
685
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
686
|
+
<div class="method-source-code" id="M000076-source">
|
659
687
|
<pre>
|
660
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
688
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 65</span>
|
661
689
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">raw</span>
|
662
690
|
<span class="ruby-ivar">@xbrl_content</span>
|
663
691
|
<span class="ruby-keyword kw">end</span>
|
@@ -666,11 +694,11 @@ the form of Hash
|
|
666
694
|
</div>
|
667
695
|
</div>
|
668
696
|
|
669
|
-
<div id="method-
|
670
|
-
<a name="
|
697
|
+
<div id="method-M000077" class="method-detail">
|
698
|
+
<a name="M000077"></a>
|
671
699
|
|
672
700
|
<div class="method-heading">
|
673
|
-
<a href="#
|
701
|
+
<a href="#M000077" class="method-signature">
|
674
702
|
<span class="method-name">schema_ref</span><span class="method-args">()</span>
|
675
703
|
</a>
|
676
704
|
</div>
|
@@ -681,10 +709,10 @@ Returns schemaRef element of instance file. schemaRef holds path to
|
|
681
709
|
taxonomy file for the instance file.
|
682
710
|
</p>
|
683
711
|
<p><a class="source-toggle" href="#"
|
684
|
-
onclick="toggleCode('
|
685
|
-
<div class="method-source-code" id="
|
712
|
+
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
713
|
+
<div class="method-source-code" id="M000077-source">
|
686
714
|
<pre>
|
687
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
715
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 70</span>
|
688
716
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">schema_ref</span>
|
689
717
|
<span class="ruby-identifier">base</span> = <span class="ruby-ivar">@xbrl_content</span>[<span class="ruby-value str">"schemaRef"</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">"xml:base"</span>]
|
690
718
|
<span class="ruby-identifier">href</span> = <span class="ruby-ivar">@xbrl_content</span>[<span class="ruby-value str">"schemaRef"</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">"xlink:href"</span>]
|
@@ -696,11 +724,11 @@ taxonomy file for the instance file.
|
|
696
724
|
</div>
|
697
725
|
</div>
|
698
726
|
|
699
|
-
<div id="method-
|
700
|
-
<a name="
|
727
|
+
<div id="method-M000083" class="method-detail">
|
728
|
+
<a name="M000083"></a>
|
701
729
|
|
702
730
|
<div class="method-heading">
|
703
|
-
<a href="#
|
731
|
+
<a href="#M000083" class="method-signature">
|
704
732
|
<span class="method-name">unit</span><span class="method-args">(unit_id=nil)</span>
|
705
733
|
</a>
|
706
734
|
</div>
|
@@ -715,10 +743,10 @@ Takes optional unit_id
|
|
715
743
|
Returns nil if unit_id is given and no matching unit found
|
716
744
|
</pre>
|
717
745
|
<p><a class="source-toggle" href="#"
|
718
|
-
onclick="toggleCode('
|
719
|
-
<div class="method-source-code" id="
|
746
|
+
onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
|
747
|
+
<div class="method-source-code" id="M000083-source">
|
720
748
|
<pre>
|
721
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line
|
749
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/instance.rb, line 229</span>
|
722
750
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unit</span>(<span class="ruby-identifier">unit_id</span>=<span class="ruby-keyword kw">nil</span>)
|
723
751
|
<span class="ruby-identifier">unit_content</span> = <span class="ruby-ivar">@xbrl_content</span>[<span class="ruby-value str">"unit"</span>]
|
724
752
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">unit_content</span>.<span class="ruby-identifier">nil?</span>
|