xbrlware-ce 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ReleaseNotes.txt +23 -5
- data/doc/classes/Edgar/RSSFeedDownloader.html +2 -2
- data/doc/classes/NSAware.html +135 -0
- data/doc/classes/Xbrlware.html +1 -6
- data/doc/classes/Xbrlware/Context.html +85 -78
- data/doc/classes/Xbrlware/Context/Period.html +49 -49
- data/doc/classes/Xbrlware/Entity.html +49 -49
- data/doc/classes/Xbrlware/Identifier.html +14 -14
- data/doc/classes/Xbrlware/Instance.html +173 -98
- data/doc/classes/Xbrlware/Item.html +62 -25
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase.html +41 -3
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +1 -1
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation/CalculationArc.html +1 -1
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase.html +43 -3
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +2 -2
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition/DefinitionArc.html +1 -1
- data/doc/classes/Xbrlware/Linkbase/LabelLinkbase/Label.html +1 -1
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +22 -7
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase.html +41 -3
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +2 -8
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation/PresentationArc.html +1 -1
- data/doc/classes/Xbrlware/Taxonomy.html +84 -51
- data/doc/classes/Xbrlware/TaxonomyDefintion.html +14 -14
- data/doc/classes/Xbrlware/Unit.html +14 -7
- data/doc/classes/Xbrlware/Unit/Divide.html +7 -7
- data/doc/created.rid +1 -1
- data/doc/files/lib/edgar/edgar_data_downloader_rb.html +1 -1
- data/doc/files/lib/edgar_rb.html +1 -1
- data/doc/files/lib/xbrlware/context_rb.html +1 -1
- data/doc/files/lib/xbrlware/instance_rb.html +1 -1
- data/doc/files/lib/xbrlware/item_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/label_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/{report_rb.html → ns_aware_rb.html} +10 -4
- data/doc/files/lib/xbrlware/taxonomy_rb.html +1 -1
- data/doc/files/lib/xbrlware/unit_rb.html +1 -1
- data/doc/files/lib/xbrlware/util_rb.html +1 -1
- data/doc/files/lib/xbrlware/version_rb.html +1 -1
- data/doc/files/lib/xbrlware/xml_parser_rb.html +1 -1
- data/doc/files/lib/xbrlware_rb.html +3 -1
- data/doc/fr_class_index.html +1 -1
- data/doc/fr_file_index.html +1 -1
- data/doc/fr_method_index.html +68 -68
- data/doc/index.html +2 -2
- data/example/callb/calculation_elements.rb +33 -0
- data/example/callb/calculation_elements_to_table.rb +62 -0
- data/example/case_study/cash_analyzer.rb +27 -0
- data/lib/edgar/edgar_data_downloader.rb +6 -6
- data/lib/xbrlware.rb +2 -0
- data/lib/xbrlware/context.rb +2 -0
- data/lib/xbrlware/instance.rb +65 -26
- data/lib/xbrlware/item.rb +34 -26
- data/lib/xbrlware/linkbase/calculation_linkbase.rb +51 -7
- data/lib/xbrlware/linkbase/definition_linkbase.rb +42 -2
- data/lib/xbrlware/linkbase/label_linkbase.rb +1 -0
- data/lib/xbrlware/linkbase/linkbase.rb +19 -9
- data/lib/xbrlware/linkbase/presentation_linkbase.rb +52 -9
- data/lib/xbrlware/ns_aware.rb +5 -0
- data/lib/xbrlware/taxonomy.rb +7 -0
- data/lib/xbrlware/unit.rb +1 -0
- data/lib/xbrlware/version.rb +1 -1
- data/lib/xbrlware/xml_parser.rb +20 -0
- data/test/lib/edgar/edgar_data_downloader_test.rb +1 -1
- data/test/lib/edgar/resources/usgaap.rss.xml +3914 -2599
- data/test/lib/xbrlware/46_item_test.rb +30 -0
- data/test/lib/xbrlware/47_context_test.rb +16 -8
- data/test/lib/xbrlware/48_unit_test.rb +10 -0
- data/test/lib/xbrlware/instance_test.rb +156 -2
- data/test/lib/xbrlware/linkbase/calculation_linkbase_test.rb +5 -5
- data/test/lib/xbrlware/linkbase/definition_linkbase_test.rb +2 -2
- data/test/lib/xbrlware/linkbase/presentation_linkbase_test.rb +0 -1
- data/test/lib/xbrlware/taxonomy_test.rb +28 -0
- data/test/lib/xbrlware/xml_parser_test.rb +81 -0
- data/test/scratchpad/tooltip.html +10 -0
- data/xbrlware-ce.gemspec +2 -0
- metadata +36 -22
- data/Rakefile.rb +0 -124
- data/doc/classes/Xbrlware/Report.html +0 -352
- data/lib/xbrlware/report.rb +0 -277
- data/test/lib/xbrlware/resources/report_test_xbrl_files/cal.xml +0 -219
- data/test/lib/xbrlware/resources/report_test_xbrl_files/def.xml +0 -186
- data/test/lib/xbrlware/resources/report_test_xbrl_files/instance.xml +0 -5822
- data/test/lib/xbrlware/resources/report_test_xbrl_files/lab.xml +0 -782
- data/test/lib/xbrlware/resources/report_test_xbrl_files/pre.xml +0 -485
- data/test/lib/xbrlware/resources/report_test_xbrl_files/report/report_index.html +0 -62
- data/test/lib/xbrlware/resources/report_test_xbrl_files/taxonomy.xsd +0 -178
- data/xbrlware.iml +0 -30
data/ReleaseNotes.txt
CHANGED
@@ -1,17 +1,36 @@
|
|
1
1
|
bitstat (http://www.bitstat.com) xbrlware release notes
|
2
2
|
=======================================================
|
3
|
+
Release 1.1.1
|
4
|
+
Bugs
|
5
|
+
* [xbrlware-ce-dev-9] : item_all method added to Xbrlware::Instnace
|
6
|
+
* [xbrlware-ce-dev-10] : Xbrlware::Instnace, inspect method returns object id
|
7
|
+
* [xbrlware-ce-dev-11] : "INF" support added to Xbrlware::Item
|
8
|
+
* [xbrlware-ce-dev-12] : better linkbase support (support chained links)
|
9
|
+
* [xbrlware-ce-dev-13] : Xbrlware::Instance.new now takes, XBRL content as string apart from XBRL instance file
|
10
|
+
|
11
|
+
Changes
|
12
|
+
* [xbrlware-ce-dev-14] : is_value_numeric added to Xbrlware::Item
|
13
|
+
* [xbrlware-ce-dev-15] : ns (namespace) & nsp (namespace prefix) added to Xbrlware::Item
|
14
|
+
* [xbrlware-ce-dev-16] : When no item found "item" method of instance will return empty array instead of null
|
15
|
+
* [xbrlware-ee-2] : Reports generation extracted as plugin. To use Xbrlware::Reports, have to include
|
16
|
+
require 'xbrlware/reports/sec'
|
17
|
+
* [xbrlware-ee-3] : "timelines" method added linkbase links which will return periods of linkbase elements
|
18
|
+
* [xbrlware-ee-4] : RDF/Semantic support added. See, http://code.google.com/p/xbrlware/wiki/RDFSupport
|
19
|
+
* [xbrlware-ee-5] : item_by_vocab method added to Xbrlware::Instance.
|
20
|
+
* [xbrlware-ee-6] : More fine grained report formatting options.
|
3
21
|
|
22
|
+
|
4
23
|
Release 1.1.0
|
5
24
|
Bugs
|
6
25
|
* [xbrlware-ce-dev-4] : entity_details method of instance.rb is specific to US & not applicable to other countries
|
7
26
|
* [xbrlware-ce-dev-5] : When linkbase documents mentioned in taxonomy are not available, ignore them than raising error
|
8
|
-
* [xbrlware-ee] :
|
9
|
-
:
|
27
|
+
* [xbrlware-ee] : Reports, should not format entity_details like CIK, Outstanding shares and other entity details as numbers
|
28
|
+
: Reports, provide custom option to format item values
|
10
29
|
: Make HTML reports social friendly ( to share in facebook, myspace etc)
|
11
30
|
Changes
|
12
31
|
* [xbrlware-ce-dev-6] : context.period changed to return Context::Period object. If you are accessing period of
|
13
|
-
context as "context.period", change that to "context.period.value"
|
14
|
-
* [xbrlware-ce-dev-7] :
|
32
|
+
a context as "context.period", change that to "context.period.value"
|
33
|
+
* [xbrlware-ce-dev-7] : is_instant?, is_duration? and is_forever? methods added to Context::Period
|
15
34
|
* [xbrlware-ce-dev-8] : Instant and duration period should return Date instead of String
|
16
35
|
Features
|
17
36
|
* [xbrlware-ce-dev-9] : has_scenario? added to context and has_segment? added to context.entity
|
@@ -22,4 +41,3 @@ Release 1.0.3
|
|
22
41
|
* [xbrlware-ce-dev-2] : error raised when xbrl linkbase document has HTML element  
|
23
42
|
* [xbrlware-ce-dev-3] : file_grep not working as intended when reference linkbase file is present.
|
24
43
|
|
25
|
-
|
@@ -200,8 +200,8 @@ href="RSSFeedDownloader.html#M000092">download</a>), download_to (where to
|
|
200
200
|
<span class="ruby-identifier">data_dir</span>=<span class="ruby-identifier">data_dir</span><span class="ruby-operator">+</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEPARATOR</span><span class="ruby-operator">+</span><span class="ruby-identifier">item</span>[<span class="ruby-value str">"xbrlFiling"</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">"accessionNumber"</span>][<span class="ruby-value">0</span>][<span class="ruby-value str">"content"</span>]
|
201
201
|
<span class="ruby-identifier">mkdir</span>(<span class="ruby-identifier">data_dir</span>)
|
202
202
|
<span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
|
203
|
-
<span class="ruby-identifier">file_content</span>=<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>[<span class="ruby-value str">"url"</span>]).<span class="ruby-identifier">read</span>
|
204
|
-
<span class="ruby-identifier">dump_to_file</span>(<span class="ruby-identifier">data_dir</span><span class="ruby-operator">+</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEPARATOR</span><span class="ruby-operator">+</span><span class="ruby-identifier">file</span>[<span class="ruby-value str">"file"</span>], <span class="ruby-identifier">file_content</span>)
|
203
|
+
<span class="ruby-identifier">file_content</span>=<span class="ruby-identifier">open</span>(<span class="ruby-identifier">file</span>[<span class="ruby-value str">"edgar:url"</span>]).<span class="ruby-identifier">read</span>
|
204
|
+
<span class="ruby-identifier">dump_to_file</span>(<span class="ruby-identifier">data_dir</span><span class="ruby-operator">+</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">SEPARATOR</span><span class="ruby-operator">+</span><span class="ruby-identifier">file</span>[<span class="ruby-value str">"edgar:file"</span>], <span class="ruby-identifier">file_content</span>)
|
205
205
|
<span class="ruby-keyword kw">end</span>
|
206
206
|
<span class="ruby-keyword kw">end</span>
|
207
207
|
<span class="ruby-keyword kw">end</span>
|
@@ -0,0 +1,135 @@
|
|
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>Module: NSAware</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>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">NSAware</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/xbrlware/ns_aware_rb.html">
|
59
|
+
lib/xbrlware/ns_aware.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
<div id="description">
|
76
|
+
<p>
|
77
|
+
namespace aware
|
78
|
+
</p>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<div id="attribute-list">
|
98
|
+
<h3 class="section-bar">Attributes</h3>
|
99
|
+
|
100
|
+
<div class="name-list">
|
101
|
+
<table>
|
102
|
+
<tr class="top-aligned-row context-row">
|
103
|
+
<td class="context-item-name">ns</td>
|
104
|
+
<td class="context-item-value"> [RW] </td>
|
105
|
+
<td class="context-item-desc">
|
106
|
+
namespace and namespace prefix
|
107
|
+
|
108
|
+
</td>
|
109
|
+
</tr>
|
110
|
+
<tr class="top-aligned-row context-row">
|
111
|
+
<td class="context-item-name">nsp</td>
|
112
|
+
<td class="context-item-value"> [RW] </td>
|
113
|
+
<td class="context-item-desc">
|
114
|
+
namespace and namespace prefix
|
115
|
+
|
116
|
+
</td>
|
117
|
+
</tr>
|
118
|
+
</table>
|
119
|
+
</div>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<!-- if method_list -->
|
125
|
+
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
|
130
|
+
<div id="validator-badges">
|
131
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
</body>
|
135
|
+
</html>
|
data/doc/classes/Xbrlware.html
CHANGED
@@ -86,10 +86,6 @@
|
|
86
86
|
<a href="../files/lib/xbrlware/constants_rb.html">
|
87
87
|
lib/xbrlware/constants.rb
|
88
88
|
</a>
|
89
|
-
<br />
|
90
|
-
<a href="../files/lib/xbrlware/report_rb.html">
|
91
|
-
lib/xbrlware/report.rb
|
92
|
-
</a>
|
93
89
|
<br />
|
94
90
|
<a href="../files/lib/xbrlware/instance_rb.html">
|
95
91
|
lib/xbrlware/instance.rb
|
@@ -198,7 +194,6 @@ Class <a href="Xbrlware/Entity.html" class="link">Xbrlware::Entity</a><br />
|
|
198
194
|
Class <a href="Xbrlware/Identifier.html" class="link">Xbrlware::Identifier</a><br />
|
199
195
|
Class <a href="Xbrlware/Instance.html" class="link">Xbrlware::Instance</a><br />
|
200
196
|
Class <a href="Xbrlware/Item.html" class="link">Xbrlware::Item</a><br />
|
201
|
-
Class <a href="Xbrlware/Report.html" class="link">Xbrlware::Report</a><br />
|
202
197
|
Class <a href="Xbrlware/Taxonomy.html" class="link">Xbrlware::Taxonomy</a><br />
|
203
198
|
Class <a href="Xbrlware/TaxonomyDefintion.html" class="link">Xbrlware::TaxonomyDefintion</a><br />
|
204
199
|
Class <a href="Xbrlware/Unit.html" class="link">Xbrlware::Unit</a><br />
|
@@ -213,7 +208,7 @@ Class <a href="Xbrlware/Unit.html" class="link">Xbrlware::Unit</a><br />
|
|
213
208
|
<tr class="top-aligned-row context-row">
|
214
209
|
<td class="context-item-name">VERSION</td>
|
215
210
|
<td>=</td>
|
216
|
-
<td class="context-item-value">"1.1.
|
211
|
+
<td class="context-item-value">"1.1.1"</td>
|
217
212
|
</tr>
|
218
213
|
</table>
|
219
214
|
</div>
|
@@ -94,19 +94,19 @@ instance page on xbrlware wiki</a> for more details.
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
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="#
|
97
|
+
<a href="#M000039">dimensions</a>
|
98
|
+
<a href="#M000043">dimensions_domains</a>
|
99
|
+
<a href="#M000041">domains</a>
|
100
|
+
<a href="#M000034">eql?</a>
|
101
|
+
<a href="#M000038">explicit_dimensions</a>
|
102
|
+
<a href="#M000042">explicit_dimensions_domains</a>
|
103
|
+
<a href="#M000040">explicit_domains</a>
|
104
|
+
<a href="#M000037">has_dimensions?</a>
|
105
|
+
<a href="#M000036">has_explicit_dimensions?</a>
|
106
|
+
<a href="#M000032">has_scenario?</a>
|
107
|
+
<a href="#M000035">hash</a>
|
108
|
+
<a href="#M000031">new</a>
|
109
|
+
<a href="#M000033">to_s</a>
|
110
110
|
</div>
|
111
111
|
</div>
|
112
112
|
|
@@ -114,6 +114,13 @@ instance page on xbrlware wiki</a> for more details.
|
|
114
114
|
|
115
115
|
|
116
116
|
<!-- if includes -->
|
117
|
+
<div id="includes">
|
118
|
+
<h3 class="section-bar">Included Modules</h3>
|
119
|
+
|
120
|
+
<div id="includes-list">
|
121
|
+
<span class="include-name"><a href="../NSAware.html">NSAware</a></span>
|
122
|
+
</div>
|
123
|
+
</div>
|
117
124
|
|
118
125
|
<div id="section">
|
119
126
|
|
@@ -175,21 +182,21 @@ instance page on xbrlware wiki</a> for more details.
|
|
175
182
|
<div id="methods">
|
176
183
|
<h3 class="section-bar">Public Class methods</h3>
|
177
184
|
|
178
|
-
<div id="method-
|
179
|
-
<a name="
|
185
|
+
<div id="method-M000031" class="method-detail">
|
186
|
+
<a name="M000031"></a>
|
180
187
|
|
181
188
|
<div class="method-heading">
|
182
|
-
<a href="#
|
189
|
+
<a href="#M000031" class="method-signature">
|
183
190
|
<span class="method-name">new</span><span class="method-args">(id, entity, period, scenario=nil)</span>
|
184
191
|
</a>
|
185
192
|
</div>
|
186
193
|
|
187
194
|
<div class="method-description">
|
188
195
|
<p><a class="source-toggle" href="#"
|
189
|
-
onclick="toggleCode('
|
190
|
-
<div class="method-source-code" id="
|
196
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
197
|
+
<div class="method-source-code" id="M000031-source">
|
191
198
|
<pre>
|
192
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
199
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 61</span>
|
193
200
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">entity</span>, <span class="ruby-identifier">period</span>, <span class="ruby-identifier">scenario</span>=<span class="ruby-keyword kw">nil</span>)
|
194
201
|
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
195
202
|
<span class="ruby-ivar">@entity</span> = <span class="ruby-identifier">entity</span>
|
@@ -203,8 +210,8 @@ instance page on xbrlware wiki</a> for more details.
|
|
203
210
|
|
204
211
|
<h3 class="section-bar">Public Instance methods</h3>
|
205
212
|
|
206
|
-
<div id="method-
|
207
|
-
<a name="
|
213
|
+
<div id="method-M000039" class="method-detail">
|
214
|
+
<a name="M000039"></a>
|
208
215
|
|
209
216
|
<div class="method-heading">
|
210
217
|
<span class="method-name">dimensions</span><span class="method-args">()</span>
|
@@ -212,13 +219,13 @@ instance page on xbrlware wiki</a> for more details.
|
|
212
219
|
|
213
220
|
<div class="method-description">
|
214
221
|
<p>
|
215
|
-
Alias for <a href="Context.html#
|
222
|
+
Alias for <a href="Context.html#M000038">explicit_dimensions</a>
|
216
223
|
</p>
|
217
224
|
</div>
|
218
225
|
</div>
|
219
226
|
|
220
|
-
<div id="method-
|
221
|
-
<a name="
|
227
|
+
<div id="method-M000043" class="method-detail">
|
228
|
+
<a name="M000043"></a>
|
222
229
|
|
223
230
|
<div class="method-heading">
|
224
231
|
<span class="method-name">dimensions_domains</span><span class="method-args">()</span>
|
@@ -226,13 +233,13 @@ Alias for <a href="Context.html#M000041">explicit_dimensions</a>
|
|
226
233
|
|
227
234
|
<div class="method-description">
|
228
235
|
<p>
|
229
|
-
Alias for <a href="Context.html#
|
236
|
+
Alias for <a href="Context.html#M000042">explicit_dimensions_domains</a>
|
230
237
|
</p>
|
231
238
|
</div>
|
232
239
|
</div>
|
233
240
|
|
234
|
-
<div id="method-
|
235
|
-
<a name="
|
241
|
+
<div id="method-M000041" class="method-detail">
|
242
|
+
<a name="M000041"></a>
|
236
243
|
|
237
244
|
<div class="method-heading">
|
238
245
|
<span class="method-name">domains</span><span class="method-args">(dimensions=[])</span>
|
@@ -240,26 +247,26 @@ Alias for <a href="Context.html#M000045">explicit_dimensions_domains</a>
|
|
240
247
|
|
241
248
|
<div class="method-description">
|
242
249
|
<p>
|
243
|
-
Alias for <a href="Context.html#
|
250
|
+
Alias for <a href="Context.html#M000040">explicit_domains</a>
|
244
251
|
</p>
|
245
252
|
</div>
|
246
253
|
</div>
|
247
254
|
|
248
|
-
<div id="method-
|
249
|
-
<a name="
|
255
|
+
<div id="method-M000034" class="method-detail">
|
256
|
+
<a name="M000034"></a>
|
250
257
|
|
251
258
|
<div class="method-heading">
|
252
|
-
<a href="#
|
259
|
+
<a href="#M000034" class="method-signature">
|
253
260
|
<span class="method-name">eql?</span><span class="method-args">(o)</span>
|
254
261
|
</a>
|
255
262
|
</div>
|
256
263
|
|
257
264
|
<div class="method-description">
|
258
265
|
<p><a class="source-toggle" href="#"
|
259
|
-
onclick="toggleCode('
|
260
|
-
<div class="method-source-code" id="
|
266
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
267
|
+
<div class="method-source-code" id="M000034-source">
|
261
268
|
<pre>
|
262
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
269
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 76</span>
|
263
270
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">o</span>)
|
264
271
|
<span class="ruby-identifier">o</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Context</span>) <span class="ruby-operator">&&</span> <span class="ruby-ivar">@id</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">id</span>
|
265
272
|
<span class="ruby-keyword kw">end</span>
|
@@ -268,21 +275,21 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
|
|
268
275
|
</div>
|
269
276
|
</div>
|
270
277
|
|
271
|
-
<div id="method-
|
272
|
-
<a name="
|
278
|
+
<div id="method-M000038" class="method-detail">
|
279
|
+
<a name="M000038"></a>
|
273
280
|
|
274
281
|
<div class="method-heading">
|
275
|
-
<a href="#
|
282
|
+
<a href="#M000038" class="method-signature">
|
276
283
|
<span class="method-name">explicit_dimensions</span><span class="method-args">()</span>
|
277
284
|
</a>
|
278
285
|
</div>
|
279
286
|
|
280
287
|
<div class="method-description">
|
281
288
|
<p><a class="source-toggle" href="#"
|
282
|
-
onclick="toggleCode('
|
283
|
-
<div class="method-source-code" id="
|
289
|
+
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
290
|
+
<div class="method-source-code" id="M000038-source">
|
284
291
|
<pre>
|
285
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
292
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 91</span>
|
286
293
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_dimensions</span>
|
287
294
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">explicit_dimensions</span>
|
288
295
|
<span class="ruby-keyword kw">end</span>
|
@@ -291,21 +298,21 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
|
|
291
298
|
</div>
|
292
299
|
</div>
|
293
300
|
|
294
|
-
<div id="method-
|
295
|
-
<a name="
|
301
|
+
<div id="method-M000042" class="method-detail">
|
302
|
+
<a name="M000042"></a>
|
296
303
|
|
297
304
|
<div class="method-heading">
|
298
|
-
<a href="#
|
305
|
+
<a href="#M000042" class="method-signature">
|
299
306
|
<span class="method-name">explicit_dimensions_domains</span><span class="method-args">()</span>
|
300
307
|
</a>
|
301
308
|
</div>
|
302
309
|
|
303
310
|
<div class="method-description">
|
304
311
|
<p><a class="source-toggle" href="#"
|
305
|
-
onclick="toggleCode('
|
306
|
-
<div class="method-source-code" id="
|
312
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
313
|
+
<div class="method-source-code" id="M000042-source">
|
307
314
|
<pre>
|
308
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
315
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 103</span>
|
309
316
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_dimensions_domains</span>
|
310
317
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">explicit_dimensions_domains</span>
|
311
318
|
<span class="ruby-keyword kw">end</span>
|
@@ -314,21 +321,21 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
|
|
314
321
|
</div>
|
315
322
|
</div>
|
316
323
|
|
317
|
-
<div id="method-
|
318
|
-
<a name="
|
324
|
+
<div id="method-M000040" class="method-detail">
|
325
|
+
<a name="M000040"></a>
|
319
326
|
|
320
327
|
<div class="method-heading">
|
321
|
-
<a href="#
|
328
|
+
<a href="#M000040" class="method-signature">
|
322
329
|
<span class="method-name">explicit_domains</span><span class="method-args">(dimensions=[])</span>
|
323
330
|
</a>
|
324
331
|
</div>
|
325
332
|
|
326
333
|
<div class="method-description">
|
327
334
|
<p><a class="source-toggle" href="#"
|
328
|
-
onclick="toggleCode('
|
329
|
-
<div class="method-source-code" id="
|
335
|
+
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
336
|
+
<div class="method-source-code" id="M000040-source">
|
330
337
|
<pre>
|
331
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
338
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 97</span>
|
332
339
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">explicit_domains</span>(<span class="ruby-identifier">dimensions</span>=[])
|
333
340
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">explicit_domains</span>(<span class="ruby-identifier">dimensions</span>)
|
334
341
|
<span class="ruby-keyword kw">end</span>
|
@@ -337,8 +344,8 @@ Alias for <a href="Context.html#M000043">explicit_domains</a>
|
|
337
344
|
</div>
|
338
345
|
</div>
|
339
346
|
|
340
|
-
<div id="method-
|
341
|
-
<a name="
|
347
|
+
<div id="method-M000037" class="method-detail">
|
348
|
+
<a name="M000037"></a>
|
342
349
|
|
343
350
|
<div class="method-heading">
|
344
351
|
<span class="method-name">has_dimensions?</span><span class="method-args">(dimensions=[])</span>
|
@@ -351,21 +358,21 @@ Alias for has_explicit_dimensions?
|
|
351
358
|
</div>
|
352
359
|
</div>
|
353
360
|
|
354
|
-
<div id="method-
|
355
|
-
<a name="
|
361
|
+
<div id="method-M000036" class="method-detail">
|
362
|
+
<a name="M000036"></a>
|
356
363
|
|
357
364
|
<div class="method-heading">
|
358
|
-
<a href="#
|
365
|
+
<a href="#M000036" class="method-signature">
|
359
366
|
<span class="method-name">has_explicit_dimensions?</span><span class="method-args">(dimensions=[])</span>
|
360
367
|
</a>
|
361
368
|
</div>
|
362
369
|
|
363
370
|
<div class="method-description">
|
364
371
|
<p><a class="source-toggle" href="#"
|
365
|
-
onclick="toggleCode('
|
366
|
-
<div class="method-source-code" id="
|
372
|
+
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
373
|
+
<div class="method-source-code" id="M000036-source">
|
367
374
|
<pre>
|
368
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
375
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 84</span>
|
369
376
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_explicit_dimensions?</span>(<span class="ruby-identifier">dimensions</span>=[])
|
370
377
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">has_explicit_dimensions?</span>(<span class="ruby-identifier">dimensions</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">nil?</span>
|
371
378
|
<span class="ruby-keyword kw">false</span>
|
@@ -375,21 +382,21 @@ Alias for has_explicit_dimensions?
|
|
375
382
|
</div>
|
376
383
|
</div>
|
377
384
|
|
378
|
-
<div id="method-
|
379
|
-
<a name="
|
385
|
+
<div id="method-M000032" class="method-detail">
|
386
|
+
<a name="M000032"></a>
|
380
387
|
|
381
388
|
<div class="method-heading">
|
382
|
-
<a href="#
|
389
|
+
<a href="#M000032" class="method-signature">
|
383
390
|
<span class="method-name">has_scenario?</span><span class="method-args">()</span>
|
384
391
|
</a>
|
385
392
|
</div>
|
386
393
|
|
387
394
|
<div class="method-description">
|
388
395
|
<p><a class="source-toggle" href="#"
|
389
|
-
onclick="toggleCode('
|
390
|
-
<div class="method-source-code" id="
|
396
|
+
onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
|
397
|
+
<div class="method-source-code" id="M000032-source">
|
391
398
|
<pre>
|
392
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
399
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 68</span>
|
393
400
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_scenario?</span>
|
394
401
|
(<span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@scenario</span>.<span class="ruby-identifier">nil?</span>)
|
395
402
|
<span class="ruby-keyword kw">end</span>
|
@@ -398,21 +405,21 @@ Alias for has_explicit_dimensions?
|
|
398
405
|
</div>
|
399
406
|
</div>
|
400
407
|
|
401
|
-
<div id="method-
|
402
|
-
<a name="
|
408
|
+
<div id="method-M000035" class="method-detail">
|
409
|
+
<a name="M000035"></a>
|
403
410
|
|
404
411
|
<div class="method-heading">
|
405
|
-
<a href="#
|
412
|
+
<a href="#M000035" class="method-signature">
|
406
413
|
<span class="method-name">hash</span><span class="method-args">()</span>
|
407
414
|
</a>
|
408
415
|
</div>
|
409
416
|
|
410
417
|
<div class="method-description">
|
411
418
|
<p><a class="source-toggle" href="#"
|
412
|
-
onclick="toggleCode('
|
413
|
-
<div class="method-source-code" id="
|
419
|
+
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
420
|
+
<div class="method-source-code" id="M000035-source">
|
414
421
|
<pre>
|
415
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
422
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 80</span>
|
416
423
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
|
417
424
|
<span class="ruby-ivar">@id</span>.<span class="ruby-identifier">hash</span>
|
418
425
|
<span class="ruby-keyword kw">end</span>
|
@@ -421,21 +428,21 @@ Alias for has_explicit_dimensions?
|
|
421
428
|
</div>
|
422
429
|
</div>
|
423
430
|
|
424
|
-
<div id="method-
|
425
|
-
<a name="
|
431
|
+
<div id="method-M000033" class="method-detail">
|
432
|
+
<a name="M000033"></a>
|
426
433
|
|
427
434
|
<div class="method-heading">
|
428
|
-
<a href="#
|
435
|
+
<a href="#M000033" class="method-signature">
|
429
436
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
430
437
|
</a>
|
431
438
|
</div>
|
432
439
|
|
433
440
|
<div class="method-description">
|
434
441
|
<p><a class="source-toggle" href="#"
|
435
|
-
onclick="toggleCode('
|
436
|
-
<div class="method-source-code" id="
|
442
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
443
|
+
<div class="method-source-code" id="M000033-source">
|
437
444
|
<pre>
|
438
|
-
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line
|
445
|
+
<span class="ruby-comment cmt"># File lib/xbrlware/context.rb, line 72</span>
|
439
446
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
440
447
|
<span class="ruby-value str">"Id ["</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">id</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"], Entity { "</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@entity</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">" }, period ["</span><span class="ruby-operator">+</span><span class="ruby-identifier">period</span>.<span class="ruby-identifier">to_s</span><span class="ruby-operator">+</span><span class="ruby-value str">"]"</span><span class="ruby-operator">+</span> (<span class="ruby-value str">", scenario ["</span><span class="ruby-operator">+</span><span class="ruby-identifier">scenario</span><span class="ruby-operator">+</span><span class="ruby-value str">"]"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">scenario</span>.<span class="ruby-identifier">nil?</span>).<span class="ruby-identifier">to_s</span>
|
441
448
|
<span class="ruby-keyword kw">end</span>
|