netlinx-workspace 0.3.0 → 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 +4 -4
- data/README.md +206 -6
- data/bin/netlinx-workspace +27 -0
- data/doc/NetLinx.html +18 -7
- data/doc/NetLinx/Compile.html +15 -4
- data/doc/NetLinx/Compile/Extension.html +15 -4
- data/doc/NetLinx/Compile/Extension/APW.html +8 -8
- data/doc/NetLinx/Project.html +334 -90
- data/doc/NetLinx/Rake.html +128 -0
- data/doc/NetLinx/Rake/Workspace.html +128 -0
- data/doc/NetLinx/Rake/Workspace/CreateWorkspaceConfig.html +387 -0
- data/doc/NetLinx/Rake/Workspace/GenerateAPW.html +371 -0
- data/doc/NetLinx/System.html +1341 -217
- data/doc/NetLinx/SystemFile.html +454 -51
- data/doc/NetLinx/Workspace.html +434 -69
- data/doc/NetLinx/Workspace/YAML.html +398 -0
- data/doc/_index.html +66 -4
- data/doc/class_list.html +6 -2
- data/doc/file.README.html +218 -10
- data/doc/file.license.html +4 -4
- data/doc/file_list.html +5 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +218 -10
- data/doc/js/full_list.js +4 -1
- data/doc/method_list.html +171 -23
- data/doc/top-level-namespace.html +3 -3
- data/lib/netlinx/compile/extension/apw.rb +3 -0
- data/lib/netlinx/rake/workspace.rb +14 -0
- data/lib/netlinx/rake/workspace/create_workspace_config.rb +49 -0
- data/lib/netlinx/rake/workspace/generate_apw.rb +41 -0
- data/lib/netlinx/workspace.rb +58 -14
- data/lib/netlinx/workspace/project.rb +107 -0
- data/lib/netlinx/workspace/system.rb +226 -0
- data/lib/netlinx/workspace/system_file.rb +98 -0
- data/lib/netlinx/workspace/yaml.rb +217 -0
- data/license.txt +1 -1
- metadata +53 -28
- data/lib/netlinx-workspace.rb +0 -1
- data/lib/netlinx/project.rb +0 -83
- data/lib/netlinx/system.rb +0 -122
- data/lib/netlinx/system_file.rb +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af4e507c310d29551131ee3a2e48b104d04d29fb
|
4
|
+
data.tar.gz: 0efd9ba6c0c2b3f23647bea4c6cb98a15fa8349f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4480ec44f77be4b2d8168746aac92aae74dec9783cc0ec52b4c5ba8795903f00a4e99865e1b4d1339618e37217b46645758e433995ea7d9b433121b4e174093e
|
7
|
+
data.tar.gz: 482ecea5a90c696b07772d49128ffd9498483d3db08e7e6c17fef7e4d7bcd024cb2edc96e7bac4839f99df970e51384a78870e3643c3693ae729c9b2d2b6cf2f
|
data/README.md
CHANGED
@@ -1,14 +1,214 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
netlinx-workspace
|
1
|
+
# netlinx-workspace
|
4
2
|
|
5
3
|
A library for working with AMX NetLinx Studio workspaces in Ruby.
|
6
4
|
|
7
5
|
[](http://badge.fury.io/rb/netlinx-workspace)
|
6
|
+
[](http://www.rubydoc.info/gems/netlinx-workspace)
|
7
|
+
[](http://www.apache.org/licenses/LICENSE-2.0)
|
8
|
+
|
9
|
+
This library provides a developer API for working with NetLinx Studio workspaces
|
10
|
+
in Ruby. It also adds compiler support to the [netlinx-compile](https://github.com/amclain/netlinx-compile)
|
11
|
+
gem for these workspaces.
|
12
|
+
|
13
|
+
**APW Target Version**
|
14
|
+
|
15
|
+
This library targets NetLinx .apw version `4.0` (created by NetLinx Studio 4).
|
16
|
+
|
17
|
+
|
18
|
+
## Issues, Bugs, Feature Requests
|
19
|
+
|
20
|
+
Any bugs and feature requests should be reported on the GitHub issue tracker:
|
21
|
+
|
22
|
+
https://github.com/amclain/netlinx-workspace/issues
|
23
|
+
|
24
|
+
|
25
|
+
**Pull requests are preferred via GitHub.**
|
26
|
+
|
27
|
+
Mercurial users can use [Hg-Git](http://hg-git.github.io/) to interact with
|
28
|
+
GitHub repositories.
|
29
|
+
|
30
|
+
|
31
|
+
## Installation
|
32
|
+
|
33
|
+
netlinx-workspace is available as a Ruby gem.
|
34
|
+
|
35
|
+
1. Install [Ruby](https://www.ruby-lang.org) 2.0.0 or higher.
|
36
|
+
* Windows: Use [RubyInstaller](http://rubyinstaller.org/downloads/)
|
37
|
+
and make sure ruby/bin is in your [system path](http://www.computerhope.com/issues/ch000549.htm).
|
38
|
+
* Linux: Use [rbenv](https://github.com/sstephenson/rbenv#basic-github-checkout).
|
39
|
+
|
40
|
+
2. Open the [command line](http://www.addictivetips.com/windows-tips/windows-7-elevated-command-prompt-in-context-menu/)
|
41
|
+
and type:
|
42
|
+
|
43
|
+
```
|
44
|
+
gem install netlinx-workspace
|
45
|
+
gem install netlinx-compile (optional for compiler support)
|
46
|
+
```
|
47
|
+
|
48
|
+
|
49
|
+
## Usage
|
50
|
+
|
51
|
+
### netlinx-compile Support
|
52
|
+
|
53
|
+
Installing this gem automatically enables support for [netlinx-compile](https://github.com/amclain/netlinx-compile)
|
54
|
+
to compile NetLinx Studio workspace (.apw) files.
|
55
|
+
|
56
|
+
|
57
|
+
### Rake Tasks
|
58
|
+
|
59
|
+
netlinx-workspace comes with a set of rake tasks that can be used by adding
|
60
|
+
`require 'netlinx/rake/workspace'` to your project's Rakefile. Type
|
61
|
+
`rake --tasks` on the command line to view the available tasks.
|
62
|
+
|
63
|
+
|
64
|
+
### Command Line
|
65
|
+
|
66
|
+
netlinx-workspace is available from the command line. A list of options can
|
67
|
+
be displayed by executing `netlinx-workspace --help`.
|
68
|
+
|
69
|
+
|
70
|
+
### Ruby Developer API
|
71
|
+
|
72
|
+
A Ruby API is provided for developers looking to integrate the netlinx-workspace
|
73
|
+
library into thier own tools. See the
|
74
|
+
[netlinx-workspace API documentation](http://rubydoc.info/gems/netlinx-workspace).
|
75
|
+
|
76
|
+
|
77
|
+
## YAML Workspace Configuration
|
78
|
+
|
79
|
+
netlinx-workspace has the ability to generate a NetLinx Studio Workspace (.apw)
|
80
|
+
file from a `workspace.config.yaml` text file. The advantage of using [YAML](http://yaml.org/spec/1.1/#id857168)
|
81
|
+
is that a workspace can easily be defined and maintained without the use of a
|
82
|
+
proprietary GUI editor. This means developers are free to use whichever text
|
83
|
+
editor they please, like [sublime-netlinx](https://github.com/amclain/sublime-netlinx),
|
84
|
+
to maintain a NetLinx workspace. Automated tools can generate, maintain, and
|
85
|
+
analyze this file as well.
|
86
|
+
|
87
|
+
To generate a template workspace config file, execute `netlinx-workspace --create`.
|
88
|
+
|
89
|
+
```yaml
|
90
|
+
systems:
|
91
|
+
-
|
92
|
+
name: Client - Room
|
93
|
+
connection: 192.168.1.2
|
94
|
+
touch_panels:
|
95
|
+
-
|
96
|
+
path: Touch Panel.TP4
|
97
|
+
dps: 10001:1:0
|
98
|
+
ir:
|
99
|
+
-
|
100
|
+
path: IR.irl
|
101
|
+
dps: 5001:1:0
|
102
|
+
```
|
103
|
+
|
104
|
+
|
105
|
+
### Directory Structure
|
106
|
+
|
107
|
+
In order to simplify the configuration file, assumptions are made as to where
|
108
|
+
project files are located:
|
109
|
+
|
110
|
+
```text
|
111
|
+
include/
|
112
|
+
ir/
|
113
|
+
module/
|
114
|
+
touch_panel/
|
115
|
+
system_name.axs
|
116
|
+
workspace.config.yaml
|
117
|
+
```
|
118
|
+
|
119
|
+
The `include` directory is automatically scanned for `.axi` files, and the
|
120
|
+
`module` directory is scanned for `.tko` and `.jar` files. `.axs` modules are
|
121
|
+
ignored, as they should be tested and compiled independently before being
|
122
|
+
included in a project. However, it is encouraged to place the `.axs` module
|
123
|
+
source code file in the module directory as a courtesy so that other developers
|
124
|
+
can fix bugs and make updates if necessary.
|
125
|
+
|
126
|
+
Since touch panel and IR files can have a device address (DPS) attached, these
|
127
|
+
files are explicitly listed in the system. Multiple addresses can be defined
|
128
|
+
by using a YAML array.
|
129
|
+
|
130
|
+
```yaml
|
131
|
+
ir:
|
132
|
+
-
|
133
|
+
path: Cable Box.irl
|
134
|
+
dps: ['5001:5:0', '5001:6:0', '5001:7:0', '5001:8:0']
|
135
|
+
```
|
136
|
+
|
137
|
+
In the case of multiple systems, the root directory of each system may need to
|
138
|
+
be offset from the workspace directory. This can be achieved by using the `root`
|
139
|
+
key.
|
140
|
+
|
141
|
+
```yaml
|
142
|
+
systems:
|
143
|
+
-
|
144
|
+
name: Room 101
|
145
|
+
root: room_101
|
146
|
+
connection: 192.168.1.2
|
147
|
+
touch_panels:
|
148
|
+
- path: Room_101.TP4
|
149
|
+
dps: 10001:1:1
|
150
|
+
-
|
151
|
+
name: Room 201
|
152
|
+
root: room_201
|
153
|
+
connection: 192.168.1.3
|
154
|
+
touch_panels:
|
155
|
+
- path: Room_201.TP4
|
156
|
+
dps: 10002:1:2
|
157
|
+
```
|
158
|
+
|
159
|
+
```text
|
160
|
+
room_101/include/
|
161
|
+
room_101/ir/
|
162
|
+
room_101/module/
|
163
|
+
room_101/touch_panel/
|
164
|
+
room_101/Room 101.axs
|
165
|
+
|
166
|
+
room_201/include/
|
167
|
+
room_201/ir/
|
168
|
+
room_201/module/
|
169
|
+
room_201/touch_panel/
|
170
|
+
room_201/Room 201.axs
|
171
|
+
|
172
|
+
workspace.config.yaml
|
173
|
+
```
|
174
|
+
|
175
|
+
|
176
|
+
### Connection Settings
|
177
|
+
|
178
|
+
The `connection` key supports a variety of options for configuring a system's
|
179
|
+
connection to the master controller:
|
180
|
+
|
181
|
+
```yaml
|
182
|
+
# IP address. Default ICSLan port 1319 is used.
|
183
|
+
connection: 192.168.1.2
|
184
|
+
|
185
|
+
# IP address with specific ICSLan port number.
|
186
|
+
connection: 192.168.1.2:1234
|
187
|
+
|
188
|
+
# IP address with specific ICSLan port number.
|
189
|
+
connection:
|
190
|
+
host: 192.168.1.2
|
191
|
+
port: 1234
|
192
|
+
|
193
|
+
# Serial port. Default baud rate 38,400 is used.
|
194
|
+
connection: COM2
|
195
|
+
|
196
|
+
# Serial port with baud rate.
|
197
|
+
connection: COM2:57600
|
8
198
|
|
9
|
-
|
199
|
+
# Serial port with multiple port settings.
|
200
|
+
connection:
|
201
|
+
port: com2
|
202
|
+
baud_rate: 115200
|
203
|
+
data_bits: 7
|
204
|
+
parity: even
|
205
|
+
stop_bits: 2
|
206
|
+
```
|
10
207
|
|
11
208
|
|
12
|
-
|
209
|
+
### Additional Information
|
13
210
|
|
14
|
-
|
211
|
+
Examples of workspace configuration files can be found in the
|
212
|
+
[spec\workspace\yaml](https://github.com/amclain/netlinx-workspace/tree/master/spec/workspace/yaml)
|
213
|
+
directory of this library. These files show all of the keywords that are
|
214
|
+
available.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
require 'optparse'
|
3
|
+
|
4
|
+
args = ARGV.empty? ? ['-h'] : ARGV
|
5
|
+
|
6
|
+
OptionParser.new do |opts|
|
7
|
+
opts.banner = "Usage: netlinx-workspace [options]"
|
8
|
+
|
9
|
+
opts.on '-h', '--help', 'Display this help screen.' do
|
10
|
+
puts opts
|
11
|
+
exit
|
12
|
+
end
|
13
|
+
|
14
|
+
opts.on '-g', '--generate', 'Generate .apw workspace file',
|
15
|
+
'from yaml config.' do
|
16
|
+
require 'netlinx/rake/workspace/generate_apw'
|
17
|
+
NetLinx::Rake::Workspace::GenerateAPW.new
|
18
|
+
Rake.application['generate_apw'].invoke
|
19
|
+
end
|
20
|
+
|
21
|
+
opts.on '--create', 'Create a workspace config.yaml file.' do
|
22
|
+
require 'netlinx/rake/workspace/create_workspace_config'
|
23
|
+
NetLinx::Rake::Workspace::CreateWorkspaceConfig.new
|
24
|
+
Rake.application['create_workspace_config'].invoke
|
25
|
+
end
|
26
|
+
|
27
|
+
end.parse! args
|
data/doc/NetLinx.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: NetLinx
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -79,18 +79,29 @@
|
|
79
79
|
|
80
80
|
|
81
81
|
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/netlinx/
|
83
|
-
lib/netlinx/
|
82
|
+
<dd class="r1 last">lib/netlinx/compile/extension/apw.rb<span class="defines">,<br />
|
83
|
+
lib/netlinx/workspace.rb,<br /> lib/netlinx/workspace/yaml.rb,<br /> lib/netlinx/rake/workspace.rb,<br /> lib/netlinx/workspace/system.rb,<br /> lib/netlinx/workspace/project.rb,<br /> lib/netlinx/workspace/system_file.rb,<br /> lib/netlinx/rake/workspace/generate_apw.rb,<br /> lib/netlinx/rake/workspace/create_workspace_config.rb</span>
|
84
84
|
</dd>
|
85
85
|
|
86
86
|
</dl>
|
87
87
|
<div class="clear"></div>
|
88
88
|
|
89
|
-
<h2>
|
89
|
+
<h2>Overview</h2><div class="docstring">
|
90
|
+
<div class="discussion">
|
91
|
+
|
92
|
+
<p>:nodoc:</p>
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<div class="tags">
|
98
|
+
|
99
|
+
|
100
|
+
</div><h2>Defined Under Namespace</h2>
|
90
101
|
<p class="children">
|
91
102
|
|
92
103
|
|
93
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="NetLinx/Compile.html" title="NetLinx::Compile (module)">Compile</a></span>
|
104
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="NetLinx/Compile.html" title="NetLinx::Compile (module)">Compile</a></span>, <span class='object_link'><a href="NetLinx/Rake.html" title="NetLinx::Rake (module)">Rake</a></span>
|
94
105
|
|
95
106
|
|
96
107
|
|
@@ -110,9 +121,9 @@
|
|
110
121
|
</div>
|
111
122
|
|
112
123
|
<div id="footer">
|
113
|
-
Generated on
|
124
|
+
Generated on Tue Feb 24 17:43:02 2015 by
|
114
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
115
|
-
0.8.7.
|
126
|
+
0.8.7.6 (ruby-2.1.3).
|
116
127
|
</div>
|
117
128
|
|
118
129
|
</body>
|
data/doc/NetLinx/Compile.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: NetLinx::Compile
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -84,7 +84,18 @@
|
|
84
84
|
</dl>
|
85
85
|
<div class="clear"></div>
|
86
86
|
|
87
|
-
<h2>
|
87
|
+
<h2>Overview</h2><div class="docstring">
|
88
|
+
<div class="discussion">
|
89
|
+
|
90
|
+
<p>:nodoc:</p>
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
<div class="tags">
|
96
|
+
|
97
|
+
|
98
|
+
</div><h2>Defined Under Namespace</h2>
|
88
99
|
<p class="children">
|
89
100
|
|
90
101
|
|
@@ -106,9 +117,9 @@
|
|
106
117
|
</div>
|
107
118
|
|
108
119
|
<div id="footer">
|
109
|
-
Generated on
|
120
|
+
Generated on Tue Feb 24 17:43:02 2015 by
|
110
121
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
|
-
0.8.7.
|
122
|
+
0.8.7.6 (ruby-2.1.3).
|
112
123
|
</div>
|
113
124
|
|
114
125
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: NetLinx::Compile::Extension
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -84,7 +84,18 @@
|
|
84
84
|
</dl>
|
85
85
|
<div class="clear"></div>
|
86
86
|
|
87
|
-
<h2>
|
87
|
+
<h2>Overview</h2><div class="docstring">
|
88
|
+
<div class="discussion">
|
89
|
+
|
90
|
+
<p>:nodoc:</p>
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
<div class="tags">
|
96
|
+
|
97
|
+
|
98
|
+
</div><h2>Defined Under Namespace</h2>
|
88
99
|
<p class="children">
|
89
100
|
|
90
101
|
|
@@ -106,9 +117,9 @@
|
|
106
117
|
</div>
|
107
118
|
|
108
119
|
<div id="footer">
|
109
|
-
Generated on
|
120
|
+
Generated on Tue Feb 24 17:43:02 2015 by
|
110
121
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
111
|
-
0.8.7.
|
122
|
+
0.8.7.6 (ruby-2.1.3).
|
112
123
|
</div>
|
113
124
|
|
114
125
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: NetLinx::Compile::Extension::APW
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -184,15 +184,15 @@
|
|
184
184
|
<pre class="lines">
|
185
185
|
|
186
186
|
|
187
|
-
10
|
188
|
-
11
|
189
|
-
12
|
190
187
|
13
|
191
188
|
14
|
192
|
-
15
|
189
|
+
15
|
190
|
+
16
|
191
|
+
17
|
192
|
+
18</pre>
|
193
193
|
</td>
|
194
194
|
<td>
|
195
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension/apw.rb', line
|
195
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/compile/extension/apw.rb', line 13</span>
|
196
196
|
|
197
197
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_handler'>get_handler</span>
|
198
198
|
<span class='id identifier rubyid_handler'>handler</span> <span class='op'>=</span> <span class='const'>NetLinx</span><span class='op'>::</span><span class='const'>Compile</span><span class='op'>::</span><span class='const'>ExtensionHandler</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> \
|
@@ -210,9 +210,9 @@
|
|
210
210
|
</div>
|
211
211
|
|
212
212
|
<div id="footer">
|
213
|
-
Generated on
|
213
|
+
Generated on Tue Feb 24 17:43:03 2015 by
|
214
214
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
215
|
-
0.8.7.
|
215
|
+
0.8.7.6 (ruby-2.1.3).
|
216
216
|
</div>
|
217
217
|
|
218
218
|
</body>
|
data/doc/NetLinx/Project.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: NetLinx::Project
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7.
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
|
96
96
|
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/netlinx/project.rb</dd>
|
97
|
+
<dd class="r2 last">lib/netlinx/workspace/project.rb</dd>
|
98
98
|
|
99
99
|
</dl>
|
100
100
|
<div class="clear"></div>
|
@@ -102,7 +102,7 @@
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
104
104
|
|
105
|
-
<p>A collection of
|
105
|
+
<p>A collection of NetLinx systems. Workspace -> Project -> System</p>
|
106
106
|
|
107
107
|
|
108
108
|
</div>
|
@@ -412,7 +412,7 @@
|
|
412
412
|
|
413
413
|
|
414
414
|
<span class="summary_desc"><div class='inline'>
|
415
|
-
<p>
|
415
|
+
<p>True if the project contains the specified file.</p>
|
416
416
|
</div></span>
|
417
417
|
|
418
418
|
</li>
|
@@ -421,7 +421,7 @@
|
|
421
421
|
<li class="public ">
|
422
422
|
<span class="summary_signature">
|
423
423
|
|
424
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Project) <strong>initialize</strong>(**
|
424
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Project) <strong>initialize</strong>(**kwargs) </a>
|
425
425
|
|
426
426
|
|
427
427
|
|
@@ -462,7 +462,31 @@
|
|
462
462
|
|
463
463
|
|
464
464
|
<span class="summary_desc"><div class='inline'>
|
465
|
-
<p>
|
465
|
+
<p>The project name.</p>
|
466
|
+
</div></span>
|
467
|
+
|
468
|
+
</li>
|
469
|
+
|
470
|
+
|
471
|
+
<li class="public ">
|
472
|
+
<span class="summary_signature">
|
473
|
+
|
474
|
+
<a href="#to_xml_element-instance_method" title="#to_xml_element (instance method)">- (REXML::Element) <strong>to_xml_element</strong> </a>
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
</span>
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
<span class="summary_desc"><div class='inline'>
|
489
|
+
<p>An XML element representing this project.</p>
|
466
490
|
</div></span>
|
467
491
|
|
468
492
|
</li>
|
@@ -477,7 +501,7 @@
|
|
477
501
|
<div class="method_details first">
|
478
502
|
<h3 class="signature first" id="initialize-instance_method">
|
479
503
|
|
480
|
-
- (<tt><span class='object_link'><a href="" title="NetLinx::Project (class)">Project</a></span></tt>) <strong>initialize</strong>(**
|
504
|
+
- (<tt><span class='object_link'><a href="" title="NetLinx::Project (class)">Project</a></span></tt>) <strong>initialize</strong>(**kwargs)
|
481
505
|
|
482
506
|
|
483
507
|
|
@@ -492,7 +516,125 @@
|
|
492
516
|
</div>
|
493
517
|
</div>
|
494
518
|
<div class="tags">
|
519
|
+
<p class="tag_title">Parameters:</p>
|
520
|
+
<ul class="param">
|
495
521
|
|
522
|
+
<li>
|
523
|
+
|
524
|
+
<span class='name'>kwargs</span>
|
525
|
+
|
526
|
+
|
527
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
—
|
532
|
+
<div class='inline'>
|
533
|
+
<p>a customizable set of options</p>
|
534
|
+
</div>
|
535
|
+
|
536
|
+
</li>
|
537
|
+
|
538
|
+
</ul>
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
<p class="tag_title">Options Hash (<tt>**kwargs</tt>):</p>
|
544
|
+
<ul class="option">
|
545
|
+
|
546
|
+
<li>
|
547
|
+
<span class="name">:workspace</span>
|
548
|
+
<span class="type">(<tt><span class='object_link'><a href="Workspace.html" title="NetLinx::Workspace (class)">NetLinx::Workspace</a></span></tt>)</span>
|
549
|
+
<span class="default">
|
550
|
+
|
551
|
+
</span>
|
552
|
+
|
553
|
+
— <div class='inline'>
|
554
|
+
<p>This system's parent workspace node.</p>
|
555
|
+
</div>
|
556
|
+
|
557
|
+
</li>
|
558
|
+
|
559
|
+
<li>
|
560
|
+
<span class="name">:name</span>
|
561
|
+
<span class="type">(<tt>String</tt>)</span>
|
562
|
+
<span class="default">
|
563
|
+
|
564
|
+
— default:
|
565
|
+
<tt>''</tt>
|
566
|
+
|
567
|
+
</span>
|
568
|
+
|
569
|
+
— <div class='inline'>
|
570
|
+
<p>Project name.</p>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
</li>
|
574
|
+
|
575
|
+
<li>
|
576
|
+
<span class="name">:description</span>
|
577
|
+
<span class="type">(<tt>String</tt>)</span>
|
578
|
+
<span class="default">
|
579
|
+
|
580
|
+
— default:
|
581
|
+
<tt>''</tt>
|
582
|
+
|
583
|
+
</span>
|
584
|
+
|
585
|
+
</li>
|
586
|
+
|
587
|
+
<li>
|
588
|
+
<span class="name">:dealer</span>
|
589
|
+
<span class="type">(<tt>String</tt>)</span>
|
590
|
+
<span class="default">
|
591
|
+
|
592
|
+
— default:
|
593
|
+
<tt>''</tt>
|
594
|
+
|
595
|
+
</span>
|
596
|
+
|
597
|
+
</li>
|
598
|
+
|
599
|
+
<li>
|
600
|
+
<span class="name">:designer</span>
|
601
|
+
<span class="type">(<tt>String</tt>)</span>
|
602
|
+
<span class="default">
|
603
|
+
|
604
|
+
— default:
|
605
|
+
<tt>''</tt>
|
606
|
+
|
607
|
+
</span>
|
608
|
+
|
609
|
+
</li>
|
610
|
+
|
611
|
+
<li>
|
612
|
+
<span class="name">:sales_order</span>
|
613
|
+
<span class="type">(<tt>String</tt>)</span>
|
614
|
+
<span class="default">
|
615
|
+
|
616
|
+
— default:
|
617
|
+
<tt>''</tt>
|
618
|
+
|
619
|
+
</span>
|
620
|
+
|
621
|
+
</li>
|
622
|
+
|
623
|
+
<li>
|
624
|
+
<span class="name">:purchase_order</span>
|
625
|
+
<span class="type">(<tt>String</tt>)</span>
|
626
|
+
<span class="default">
|
627
|
+
|
628
|
+
— default:
|
629
|
+
<tt>''</tt>
|
630
|
+
|
631
|
+
</span>
|
632
|
+
|
633
|
+
</li>
|
634
|
+
|
635
|
+
</ul>
|
636
|
+
|
637
|
+
|
496
638
|
|
497
639
|
</div><table class="source_code">
|
498
640
|
<tr>
|
@@ -500,36 +642,38 @@
|
|
500
642
|
<pre class="lines">
|
501
643
|
|
502
644
|
|
503
|
-
16
|
504
|
-
17
|
505
|
-
18
|
506
|
-
19
|
507
|
-
20
|
508
|
-
21
|
509
|
-
22
|
510
|
-
23
|
511
|
-
24
|
512
645
|
25
|
513
646
|
26
|
514
647
|
27
|
515
648
|
28
|
516
|
-
29
|
649
|
+
29
|
650
|
+
30
|
651
|
+
31
|
652
|
+
32
|
653
|
+
33
|
654
|
+
34
|
655
|
+
35
|
656
|
+
36
|
657
|
+
37
|
658
|
+
38
|
659
|
+
39</pre>
|
517
660
|
</td>
|
518
661
|
<td>
|
519
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
520
|
-
|
521
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span
|
522
|
-
<span class='ivar'>@
|
523
|
-
|
524
|
-
<span class='ivar'>@
|
525
|
-
<span class='ivar'>@
|
526
|
-
<span class='ivar'>@
|
527
|
-
<span class='ivar'>@
|
528
|
-
<span class='ivar'>@
|
662
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 25</span>
|
663
|
+
|
664
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span>
|
665
|
+
<span class='ivar'>@workspace</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:workspace</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
666
|
+
|
667
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
668
|
+
<span class='ivar'>@description</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:description</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
669
|
+
<span class='ivar'>@dealer</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:dealer</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
670
|
+
<span class='ivar'>@designer</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:designer</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
671
|
+
<span class='ivar'>@sales_order</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:sales_order</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
672
|
+
<span class='ivar'>@purchase_order</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:purchase_order</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
529
673
|
|
530
674
|
<span class='ivar'>@systems</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
531
675
|
|
532
|
-
<span class='id identifier rubyid_project_element'>project_element</span> <span class='op'>=</span> <span class='id identifier
|
676
|
+
<span class='id identifier rubyid_project_element'>project_element</span> <span class='op'>=</span> <span class='id identifier rubyid_kwargs'>kwargs</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:element</span><span class='comma'>,</span> <span class='kw'>nil</span>
|
533
677
|
<span class='id identifier rubyid_parse_xml_element'>parse_xml_element</span> <span class='id identifier rubyid_project_element'>project_element</span> <span class='kw'>if</span> <span class='id identifier rubyid_project_element'>project_element</span>
|
534
678
|
<span class='kw'>end</span></pre>
|
535
679
|
</td>
|
@@ -570,12 +714,12 @@
|
|
570
714
|
<pre class="lines">
|
571
715
|
|
572
716
|
|
573
|
-
|
574
|
-
|
575
|
-
|
717
|
+
12
|
718
|
+
13
|
719
|
+
14</pre>
|
576
720
|
</td>
|
577
721
|
<td>
|
578
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
722
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 12</span>
|
579
723
|
|
580
724
|
<span class='kw'>def</span> <span class='id identifier rubyid_dealer'>dealer</span>
|
581
725
|
<span class='ivar'>@dealer</span>
|
@@ -613,12 +757,12 @@
|
|
613
757
|
<pre class="lines">
|
614
758
|
|
615
759
|
|
616
|
-
|
617
|
-
|
618
|
-
|
760
|
+
11
|
761
|
+
12
|
762
|
+
13</pre>
|
619
763
|
</td>
|
620
764
|
<td>
|
621
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
765
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 11</span>
|
622
766
|
|
623
767
|
<span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
|
624
768
|
<span class='ivar'>@description</span>
|
@@ -656,12 +800,12 @@
|
|
656
800
|
<pre class="lines">
|
657
801
|
|
658
802
|
|
659
|
-
|
660
|
-
|
661
|
-
|
803
|
+
13
|
804
|
+
14
|
805
|
+
15</pre>
|
662
806
|
</td>
|
663
807
|
<td>
|
664
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
808
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 13</span>
|
665
809
|
|
666
810
|
<span class='kw'>def</span> <span class='id identifier rubyid_designer'>designer</span>
|
667
811
|
<span class='ivar'>@designer</span>
|
@@ -699,12 +843,12 @@
|
|
699
843
|
<pre class="lines">
|
700
844
|
|
701
845
|
|
702
|
-
|
703
|
-
|
704
|
-
|
846
|
+
10
|
847
|
+
11
|
848
|
+
12</pre>
|
705
849
|
</td>
|
706
850
|
<td>
|
707
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
851
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 10</span>
|
708
852
|
|
709
853
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
710
854
|
<span class='ivar'>@name</span>
|
@@ -742,12 +886,12 @@
|
|
742
886
|
<pre class="lines">
|
743
887
|
|
744
888
|
|
745
|
-
|
746
|
-
|
747
|
-
|
889
|
+
15
|
890
|
+
16
|
891
|
+
17</pre>
|
748
892
|
</td>
|
749
893
|
<td>
|
750
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
894
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 15</span>
|
751
895
|
|
752
896
|
<span class='kw'>def</span> <span class='id identifier rubyid_purchase_order'>purchase_order</span>
|
753
897
|
<span class='ivar'>@purchase_order</span>
|
@@ -785,12 +929,12 @@
|
|
785
929
|
<pre class="lines">
|
786
930
|
|
787
931
|
|
788
|
-
|
789
|
-
|
790
|
-
|
932
|
+
14
|
933
|
+
15
|
934
|
+
16</pre>
|
791
935
|
</td>
|
792
936
|
<td>
|
793
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
937
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 14</span>
|
794
938
|
|
795
939
|
<span class='kw'>def</span> <span class='id identifier rubyid_sales_order'>sales_order</span>
|
796
940
|
<span class='ivar'>@sales_order</span>
|
@@ -828,12 +972,12 @@
|
|
828
972
|
<pre class="lines">
|
829
973
|
|
830
974
|
|
831
|
-
|
832
|
-
|
833
|
-
|
975
|
+
16
|
976
|
+
17
|
977
|
+
18</pre>
|
834
978
|
</td>
|
835
979
|
<td>
|
836
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
980
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 16</span>
|
837
981
|
|
838
982
|
<span class='kw'>def</span> <span class='id identifier rubyid_systems'>systems</span>
|
839
983
|
<span class='ivar'>@systems</span>
|
@@ -871,12 +1015,12 @@
|
|
871
1015
|
<pre class="lines">
|
872
1016
|
|
873
1017
|
|
874
|
-
|
875
|
-
|
876
|
-
|
1018
|
+
9
|
1019
|
+
10
|
1020
|
+
11</pre>
|
877
1021
|
</td>
|
878
1022
|
<td>
|
879
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
1023
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 9</span>
|
880
1024
|
|
881
1025
|
<span class='kw'>def</span> <span class='id identifier rubyid_workspace'>workspace</span>
|
882
1026
|
<span class='ivar'>@workspace</span>
|
@@ -919,15 +1063,15 @@
|
|
919
1063
|
<pre class="lines">
|
920
1064
|
|
921
1065
|
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
1066
|
+
42
|
1067
|
+
43
|
1068
|
+
44
|
1069
|
+
45</pre>
|
926
1070
|
</td>
|
927
1071
|
<td>
|
928
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
1072
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 42</span>
|
929
1073
|
|
930
|
-
<span class='kw'>def</span> <span class='op'><<</span
|
1074
|
+
<span class='kw'>def</span> <span class='op'><<</span> <span class='id identifier rubyid_system'>system</span>
|
931
1075
|
<span class='ivar'>@systems</span> <span class='op'><<</span> <span class='id identifier rubyid_system'>system</span>
|
932
1076
|
<span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_project'>project</span> <span class='op'>=</span> <span class='kw'>self</span>
|
933
1077
|
<span class='kw'>end</span></pre>
|
@@ -962,14 +1106,14 @@
|
|
962
1106
|
<pre class="lines">
|
963
1107
|
|
964
1108
|
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
1109
|
+
65
|
1110
|
+
66
|
1111
|
+
67
|
1112
|
+
68
|
1113
|
+
69</pre>
|
970
1114
|
</td>
|
971
1115
|
<td>
|
972
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
1116
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 65</span>
|
973
1117
|
|
974
1118
|
<span class='kw'>def</span> <span class='id identifier rubyid_compile'>compile</span>
|
975
1119
|
<span class='id identifier rubyid_compiler_results'>compiler_results</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -1010,6 +1154,11 @@
|
|
1010
1154
|
|
1011
1155
|
|
1012
1156
|
|
1157
|
+
—
|
1158
|
+
<div class='inline'>
|
1159
|
+
<p>true if the project contains the specified file.</p>
|
1160
|
+
</div>
|
1161
|
+
|
1013
1162
|
</li>
|
1014
1163
|
|
1015
1164
|
</ul>
|
@@ -1020,21 +1169,21 @@
|
|
1020
1169
|
<pre class="lines">
|
1021
1170
|
|
1022
1171
|
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1172
|
+
53
|
1173
|
+
54
|
1174
|
+
55
|
1175
|
+
56
|
1176
|
+
57
|
1177
|
+
58
|
1178
|
+
59
|
1179
|
+
60
|
1180
|
+
61
|
1181
|
+
62</pre>
|
1033
1182
|
</td>
|
1034
1183
|
<td>
|
1035
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
1184
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 53</span>
|
1036
1185
|
|
1037
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_include?'>include?</span
|
1186
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_file'>file</span>
|
1038
1187
|
<span class='id identifier rubyid_included'>included</span> <span class='op'>=</span> <span class='kw'>false</span>
|
1039
1188
|
|
1040
1189
|
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span>
|
@@ -1068,6 +1217,24 @@
|
|
1068
1217
|
</div>
|
1069
1218
|
<div class="tags">
|
1070
1219
|
|
1220
|
+
<p class="tag_title">Returns:</p>
|
1221
|
+
<ul class="return">
|
1222
|
+
|
1223
|
+
<li>
|
1224
|
+
|
1225
|
+
|
1226
|
+
<span class='type'></span>
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
<div class='inline'>
|
1232
|
+
<p>the project name.</p>
|
1233
|
+
</div>
|
1234
|
+
|
1235
|
+
</li>
|
1236
|
+
|
1237
|
+
</ul>
|
1071
1238
|
|
1072
1239
|
</div><table class="source_code">
|
1073
1240
|
<tr>
|
@@ -1075,12 +1242,12 @@
|
|
1075
1242
|
<pre class="lines">
|
1076
1243
|
|
1077
1244
|
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1245
|
+
48
|
1246
|
+
49
|
1247
|
+
50</pre>
|
1081
1248
|
</td>
|
1082
1249
|
<td>
|
1083
|
-
<pre class="code"><span class="info file"># File 'lib/netlinx/project.rb', line
|
1250
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 48</span>
|
1084
1251
|
|
1085
1252
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
1086
1253
|
<span class='ivar'>@name</span>
|
@@ -1088,6 +1255,83 @@
|
|
1088
1255
|
</td>
|
1089
1256
|
</tr>
|
1090
1257
|
</table>
|
1258
|
+
</div>
|
1259
|
+
|
1260
|
+
<div class="method_details ">
|
1261
|
+
<h3 class="signature " id="to_xml_element-instance_method">
|
1262
|
+
|
1263
|
+
- (<tt>REXML::Element</tt>) <strong>to_xml_element</strong>
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
|
1269
|
+
</h3><div class="docstring">
|
1270
|
+
<div class="discussion">
|
1271
|
+
|
1272
|
+
<p>Returns an XML element representing this project.</p>
|
1273
|
+
|
1274
|
+
|
1275
|
+
</div>
|
1276
|
+
</div>
|
1277
|
+
<div class="tags">
|
1278
|
+
|
1279
|
+
<p class="tag_title">Returns:</p>
|
1280
|
+
<ul class="return">
|
1281
|
+
|
1282
|
+
<li>
|
1283
|
+
|
1284
|
+
|
1285
|
+
<span class='type'>(<tt>REXML::Element</tt>)</span>
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
1289
|
+
—
|
1290
|
+
<div class='inline'>
|
1291
|
+
<p>an XML element representing this project.</p>
|
1292
|
+
</div>
|
1293
|
+
|
1294
|
+
</li>
|
1295
|
+
|
1296
|
+
</ul>
|
1297
|
+
|
1298
|
+
</div><table class="source_code">
|
1299
|
+
<tr>
|
1300
|
+
<td>
|
1301
|
+
<pre class="lines">
|
1302
|
+
|
1303
|
+
|
1304
|
+
72
|
1305
|
+
73
|
1306
|
+
74
|
1307
|
+
75
|
1308
|
+
76
|
1309
|
+
77
|
1310
|
+
78
|
1311
|
+
79
|
1312
|
+
80
|
1313
|
+
81
|
1314
|
+
82
|
1315
|
+
83</pre>
|
1316
|
+
</td>
|
1317
|
+
<td>
|
1318
|
+
<pre class="code"><span class="info file"># File 'lib/netlinx/workspace/project.rb', line 72</span>
|
1319
|
+
|
1320
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_xml_element'>to_xml_element</span>
|
1321
|
+
<span class='const'>REXML</span><span class='op'>::</span><span class='const'>Element</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Project</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_project'>project</span><span class='op'>|</span>
|
1322
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Identifier</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span>
|
1323
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Designer</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_designer'>designer</span> <span class='rbrace'>}</span>
|
1324
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DealerID</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_dealer'>dealer</span> <span class='rbrace'>}</span>
|
1325
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SalesOrder</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_sales_order'>sales_order</span> <span class='rbrace'>}</span>
|
1326
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>PurchaseOrder</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_purchase_order'>purchase_order</span> <span class='rbrace'>}</span>
|
1327
|
+
<span class='id identifier rubyid_project'>project</span><span class='period'>.</span><span class='id identifier rubyid_add_element'>add_element</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Comments</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='id identifier rubyid_description'>description</span> <span class='rbrace'>}</span>
|
1328
|
+
|
1329
|
+
<span class='ivar'>@systems</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_system'>system</span><span class='op'>|</span> <span class='id identifier rubyid_project'>project</span> <span class='op'><<</span> <span class='id identifier rubyid_system'>system</span><span class='period'>.</span><span class='id identifier rubyid_to_xml_element'>to_xml_element</span> <span class='rbrace'>}</span>
|
1330
|
+
<span class='kw'>end</span>
|
1331
|
+
<span class='kw'>end</span></pre>
|
1332
|
+
</td>
|
1333
|
+
</tr>
|
1334
|
+
</table>
|
1091
1335
|
</div>
|
1092
1336
|
|
1093
1337
|
</div>
|
@@ -1095,9 +1339,9 @@
|
|
1095
1339
|
</div>
|
1096
1340
|
|
1097
1341
|
<div id="footer">
|
1098
|
-
Generated on
|
1342
|
+
Generated on Tue Feb 24 17:43:03 2015 by
|
1099
1343
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1100
|
-
0.8.7.
|
1344
|
+
0.8.7.6 (ruby-2.1.3).
|
1101
1345
|
</div>
|
1102
1346
|
|
1103
1347
|
</body>
|