quickbooks 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +11 -7
- data/Rakefile +1 -1
- data/doc/classes/QuickBooks.html +5 -33
- data/doc/classes/QuickBooks/{Session.html → Connection.html} +37 -37
- data/doc/classes/QuickBooks/{Session.src/M000011.html → Connection.src/M000015.html} +2 -2
- data/doc/classes/QuickBooks/{Session.src/M000012.html → Connection.src/M000016.html} +2 -2
- data/doc/classes/QuickBooks/{Session.src/M000013.html → Connection.src/M000017.html} +2 -2
- data/doc/classes/QuickBooks/{Session.src/M000014.html → Connection.src/M000018.html} +2 -2
- data/doc/classes/QuickBooks/{Session.src/M000015.html → Connection.src/M000019.html} +2 -2
- data/doc/classes/QuickBooks/Models.html +2 -2
- data/doc/classes/QuickBooks/Models/Base.html +70 -8
- data/doc/classes/QuickBooks/Models/Base.src/M000010.html +5 -3
- data/doc/classes/QuickBooks/Models/Base.src/M000011.html +18 -0
- data/doc/classes/QuickBooks/Models/Base.src/M000012.html +18 -0
- data/doc/classes/QuickBooks/Models/Base.src/{M000009.html → M000013.html} +1 -2
- data/doc/classes/QuickBooks/Models/{Transaction.src/M000003.html → Base.src/M000014.html} +3 -3
- data/doc/classes/QuickBooks/Models/Customer.html +17 -2
- data/doc/classes/QuickBooks/Models/Customer.src/M000001.html +1 -1
- data/doc/classes/QuickBooks/Models/Customer.src/M000002.html +2 -1
- data/doc/classes/QuickBooks/Models/Customer.src/M000003.html +18 -0
- data/doc/classes/QuickBooks/Models/ListItem.html +9 -9
- data/doc/classes/QuickBooks/Models/ListItem.src/M000008.html +2 -2
- data/doc/classes/QuickBooks/Models/ListItem.src/{M000007.html → M000009.html} +2 -2
- data/doc/classes/QuickBooks/Models/Transaction.html +18 -18
- data/doc/classes/QuickBooks/Models/Transaction.src/M000004.html +2 -2
- data/doc/classes/QuickBooks/Models/Transaction.src/M000005.html +3 -3
- data/doc/classes/QuickBooks/Models/Transaction.src/M000006.html +2 -2
- data/doc/classes/QuickBooks/Models/Transaction.src/M000007.html +17 -0
- data/doc/created.rid +1 -1
- data/doc/files/README.html +14 -8
- data/doc/files/lib/quickbooks/{session_rb.html → connection_rb.html} +4 -4
- data/doc/files/lib/quickbooks/models/base_rb.html +1 -29
- data/doc/files/lib/quickbooks/models/{customer_rb.html → models_rb.html} +5 -33
- data/doc/files/lib/quickbooks_rb.html +3 -32
- data/doc/fr_class_index.html +1 -1
- data/doc/fr_file_index.html +2 -2
- data/doc/fr_method_index.html +14 -10
- data/lib/quickbooks.rb +2 -40
- data/lib/quickbooks/{session.rb → connection.rb} +7 -25
- data/lib/quickbooks/models/base.rb +19 -18
- data/lib/quickbooks/models/{customer.rb → models.rb} +5 -18
- data/test/quickbooks/quickbooks_test.rb +19 -12
- metadata +20 -16
data/README
CHANGED
@@ -14,16 +14,16 @@ operating systems.
|
|
14
14
|
== Status
|
15
15
|
|
16
16
|
This library is a work in progress and has very limited capabilities right now. There is
|
17
|
-
a
|
17
|
+
a Connection class that will let you connect to QuickBooks and send QBXML directly. I am in
|
18
18
|
the process of implementing all the messages that you can send and recieve in an easy to
|
19
19
|
use class structure.
|
20
20
|
|
21
21
|
== Usage
|
22
22
|
|
23
|
-
You can use the QuickBooks::
|
23
|
+
You can use the QuickBooks::Connection class to talk to the RDS server:
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
connection = QuickBooks::Connection.new('admin', 'pass123', 'My Test App')
|
26
|
+
connection.open
|
27
27
|
xml = <<EOL
|
28
28
|
<?xml version="1.0"?>
|
29
29
|
<?qbxml version="3.0"?>
|
@@ -36,11 +36,15 @@ You can use the QuickBooks::Session class to talk to the RDS server:
|
|
36
36
|
</QBXMLMsgsRq>
|
37
37
|
</QBXML>
|
38
38
|
EOL
|
39
|
-
|
40
|
-
|
39
|
+
connection.send(xml)
|
40
|
+
connection.close
|
41
41
|
|
42
42
|
== Authors
|
43
43
|
|
44
44
|
* Chris Bruce (mailto:chrisabruce@yahoo.com)
|
45
45
|
|
46
|
-
This library is released under the terms of the MIT License.
|
46
|
+
This library is released under the terms of the MIT License.
|
47
|
+
|
48
|
+
== Changes
|
49
|
+
|
50
|
+
I renamed QuickBooks::Session to QuickBooks::Connection as it seems more intuitive.
|
data/Rakefile
CHANGED
data/doc/classes/QuickBooks.html
CHANGED
@@ -55,16 +55,16 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../files/lib/quickbooks/
|
59
|
-
lib/quickbooks/
|
58
|
+
<a href="../files/lib/quickbooks/connection_rb.html">
|
59
|
+
lib/quickbooks/connection.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
<a href="../files/lib/quickbooks/models/base_rb.html">
|
63
63
|
lib/quickbooks/models/base.rb
|
64
64
|
</a>
|
65
65
|
<br />
|
66
|
-
<a href="../files/lib/quickbooks/models/
|
67
|
-
lib/quickbooks/models/
|
66
|
+
<a href="../files/lib/quickbooks/models/models_rb.html">
|
67
|
+
lib/quickbooks/models/models.rb
|
68
68
|
</a>
|
69
69
|
<br />
|
70
70
|
</td>
|
@@ -80,34 +80,6 @@
|
|
80
80
|
|
81
81
|
<div id="contextContent">
|
82
82
|
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
Copyright © 2006 Chris Bruce
|
86
|
-
</p>
|
87
|
-
<p>
|
88
|
-
Permission is hereby granted, free of charge, to any person obtaining a
|
89
|
-
copy of this software and associated documentation files (the
|
90
|
-
"Software"), to deal in the Software without restriction,
|
91
|
-
including without limitation the rights to use, copy, modify, merge,
|
92
|
-
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
93
|
-
permit persons to whom the Software is furnished to do so, subject to the
|
94
|
-
following conditions:
|
95
|
-
</p>
|
96
|
-
<p>
|
97
|
-
The above copyright notice and this permission notice shall be included in
|
98
|
-
all copies or substantial portions of the Software.
|
99
|
-
</p>
|
100
|
-
<p>
|
101
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
102
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
103
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
104
|
-
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
105
|
-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
106
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
107
|
-
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
108
|
-
</p>
|
109
|
-
|
110
|
-
</div>
|
111
83
|
|
112
84
|
|
113
85
|
</div>
|
@@ -124,7 +96,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
124
96
|
<h3 class="section-bar">Classes and Modules</h3>
|
125
97
|
|
126
98
|
Module <a href="QuickBooks/Models.html" class="link">QuickBooks::Models</a><br />
|
127
|
-
Class <a href="QuickBooks/
|
99
|
+
Class <a href="QuickBooks/Connection.html" class="link">QuickBooks::Connection</a><br />
|
128
100
|
|
129
101
|
</div>
|
130
102
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class: QuickBooks::
|
8
|
+
<title>Class: QuickBooks::Connection</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
11
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
@@ -50,13 +50,13 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">QuickBooks::
|
53
|
+
<td class="class-name-in-header">QuickBooks::Connection</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../files/lib/quickbooks/
|
59
|
-
lib/quickbooks/
|
58
|
+
<a href="../../files/lib/quickbooks/connection_rb.html">
|
59
|
+
lib/quickbooks/connection.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -80,16 +80,16 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
<a href="
|
83
|
+
<a href="Connection.html">Connection</a> is used to communicate with <a
|
84
84
|
href="../QuickBooks.html">QuickBooks</a> RDS Server. You need to configure
|
85
85
|
your <a href="../QuickBooks.html">QuickBooks</a> software to allow RDS
|
86
|
-
connection from application. <code>
|
86
|
+
connection from your application. <code>
|
87
87
|
</p>
|
88
88
|
<pre>
|
89
89
|
require 'quickbooks'
|
90
90
|
|
91
|
-
|
92
|
-
|
91
|
+
connection = QuickBooks::Connection.new('admin', 'pass', 'My Test App')
|
92
|
+
connection.open
|
93
93
|
xml = <<END
|
94
94
|
<?xml version="1.0"?>
|
95
95
|
<?qbxml version="3.0"?>
|
@@ -102,8 +102,8 @@ connection from application. <code>
|
|
102
102
|
</QBXMLMsgsRq>
|
103
103
|
</QBXML>
|
104
104
|
<<END
|
105
|
-
|
106
|
-
|
105
|
+
connection.send(xml)
|
106
|
+
connection.close
|
107
107
|
</pre>
|
108
108
|
|
109
109
|
</div>
|
@@ -115,11 +115,11 @@ connection from application. <code>
|
|
115
115
|
<h3 class="section-bar">Methods</h3>
|
116
116
|
|
117
117
|
<div class="name-list">
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
118
|
+
<a href="#M000019">close</a>
|
119
|
+
<a href="#M000016">connected?</a>
|
120
|
+
<a href="#M000015">new</a>
|
121
|
+
<a href="#M000017">open</a>
|
122
|
+
<a href="#M000018">send</a>
|
123
123
|
</div>
|
124
124
|
</div>
|
125
125
|
|
@@ -174,31 +174,31 @@ connection from application. <code>
|
|
174
174
|
<div id="methods">
|
175
175
|
<h3 class="section-bar">Public Class methods</h3>
|
176
176
|
|
177
|
-
<div id="method-
|
178
|
-
<a name="
|
177
|
+
<div id="method-M000015" class="method-detail">
|
178
|
+
<a name="M000015"></a>
|
179
179
|
|
180
180
|
<div class="method-heading">
|
181
|
-
<a href="
|
182
|
-
onclick="popupCode('
|
181
|
+
<a href="Connection.src/M000015.html" target="Code" class="method-signature"
|
182
|
+
onclick="popupCode('Connection.src/M000015.html');return false;">
|
183
183
|
<span class="method-name">new</span><span class="method-args">(user, password, application_name, host="localhost", port=3790, mode='multiUser')</span>
|
184
184
|
</a>
|
185
185
|
</div>
|
186
186
|
|
187
187
|
<div class="method-description">
|
188
188
|
<p>
|
189
|
-
Initializes an instance of
|
189
|
+
Initializes an instance of QuickBooks::Session
|
190
190
|
</p>
|
191
191
|
</div>
|
192
192
|
</div>
|
193
193
|
|
194
194
|
<h3 class="section-bar">Public Instance methods</h3>
|
195
195
|
|
196
|
-
<div id="method-
|
197
|
-
<a name="
|
196
|
+
<div id="method-M000019" class="method-detail">
|
197
|
+
<a name="M000019"></a>
|
198
198
|
|
199
199
|
<div class="method-heading">
|
200
|
-
<a href="
|
201
|
-
onclick="popupCode('
|
200
|
+
<a href="Connection.src/M000019.html" target="Code" class="method-signature"
|
201
|
+
onclick="popupCode('Connection.src/M000019.html');return false;">
|
202
202
|
<span class="method-name">close</span><span class="method-args">()</span>
|
203
203
|
</a>
|
204
204
|
</div>
|
@@ -210,30 +210,30 @@ Close the session to <a href="../QuickBooks.html">QuickBooks</a> RDS Server
|
|
210
210
|
</div>
|
211
211
|
</div>
|
212
212
|
|
213
|
-
<div id="method-
|
214
|
-
<a name="
|
213
|
+
<div id="method-M000016" class="method-detail">
|
214
|
+
<a name="M000016"></a>
|
215
215
|
|
216
216
|
<div class="method-heading">
|
217
|
-
<a href="
|
218
|
-
onclick="popupCode('
|
217
|
+
<a href="Connection.src/M000016.html" target="Code" class="method-signature"
|
218
|
+
onclick="popupCode('Connection.src/M000016.html');return false;">
|
219
219
|
<span class="method-name">connected?</span><span class="method-args">()</span>
|
220
220
|
</a>
|
221
221
|
</div>
|
222
222
|
|
223
223
|
<div class="method-description">
|
224
224
|
<p>
|
225
|
-
Determines if the
|
225
|
+
Determines if the Session is connected to a <a
|
226
226
|
href="../QuickBooks.html">QuickBooks</a> RDS Server
|
227
227
|
</p>
|
228
228
|
</div>
|
229
229
|
</div>
|
230
230
|
|
231
|
-
<div id="method-
|
232
|
-
<a name="
|
231
|
+
<div id="method-M000017" class="method-detail">
|
232
|
+
<a name="M000017"></a>
|
233
233
|
|
234
234
|
<div class="method-heading">
|
235
|
-
<a href="
|
236
|
-
onclick="popupCode('
|
235
|
+
<a href="Connection.src/M000017.html" target="Code" class="method-signature"
|
236
|
+
onclick="popupCode('Connection.src/M000017.html');return false;">
|
237
237
|
<span class="method-name">open</span><span class="method-args">()</span>
|
238
238
|
</a>
|
239
239
|
</div>
|
@@ -246,12 +246,12 @@ Server
|
|
246
246
|
</div>
|
247
247
|
</div>
|
248
248
|
|
249
|
-
<div id="method-
|
250
|
-
<a name="
|
249
|
+
<div id="method-M000018" class="method-detail">
|
250
|
+
<a name="M000018"></a>
|
251
251
|
|
252
252
|
<div class="method-heading">
|
253
|
-
<a href="
|
254
|
-
onclick="popupCode('
|
253
|
+
<a href="Connection.src/M000018.html" target="Code" class="method-signature"
|
254
|
+
onclick="popupCode('Connection.src/M000018.html');return false;">
|
255
255
|
<span class="method-name">send</span><span class="method-args">(xml)</span>
|
256
256
|
</a>
|
257
257
|
</div>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>new (QuickBooks::
|
8
|
+
<title>new (QuickBooks::Connection)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/connection.rb, line 31</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">application_name</span>, <span class="ruby-identifier">host</span>=<span class="ruby-value str">"localhost"</span>, <span class="ruby-identifier">port</span>=<span class="ruby-value">3790</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-value str">'multiUser'</span>)
|
15
15
|
<span class="ruby-ivar">@user</span> = <span class="ruby-identifier">user</span>
|
16
16
|
<span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>connected? (QuickBooks::
|
8
|
+
<title>connected? (QuickBooks::Connection)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/connection.rb, line 43</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connected?</span>
|
15
15
|
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@ticket</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@soap_client</span>
|
16
16
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>open (QuickBooks::
|
8
|
+
<title>open (QuickBooks::Connection)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/connection.rb, line 51</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>
|
15
15
|
<span class="ruby-ivar">@soap_client</span> = <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">WSDLDriverFactory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">"https://#{@host}:#{@port}/QBXMLRemote?wsdl"</span>).<span class="ruby-identifier">create_rpc_driver</span>
|
16
16
|
<span class="ruby-ivar">@ticket</span> = <span class="ruby-ivar">@soap_client</span>.<span class="ruby-constant">OpenConnectionAndBeginSession</span>(<span class="ruby-ivar">@user</span>, <span class="ruby-ivar">@password</span>, <span class="ruby-value str">''</span>, <span class="ruby-ivar">@application_name</span>, <span class="ruby-value str">''</span>, <span class="ruby-ivar">@mode</span>)
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>send (QuickBooks::
|
8
|
+
<title>send (QuickBooks::Connection)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/connection.rb, line 58</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send</span>(<span class="ruby-identifier">xml</span>)
|
15
15
|
<span class="ruby-ivar">@soap_client</span>.<span class="ruby-constant">ProcessRequest</span>(<span class="ruby-ivar">@ticket</span>, <span class="ruby-identifier">xml</span>)
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>close (QuickBooks::
|
8
|
+
<title>close (QuickBooks::Connection)</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/quickbooks/connection.rb, line 63</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
15
15
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">connected?</span> <span class="ruby-operator">&&</span> <span class="ruby-ivar">@soap_client</span>
|
16
16
|
<span class="ruby-ivar">@soap_client</span>.<span class="ruby-constant">CloseConnection</span>(<span class="ruby-ivar">@ticket</span>)
|
@@ -59,8 +59,8 @@
|
|
59
59
|
lib/quickbooks/models/base.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
|
-
<a href="../../files/lib/quickbooks/models/
|
63
|
-
lib/quickbooks/models/
|
62
|
+
<a href="../../files/lib/quickbooks/models/models_rb.html">
|
63
|
+
lib/quickbooks/models/models.rb
|
64
64
|
</a>
|
65
65
|
<br />
|
66
66
|
</td>
|
@@ -86,8 +86,11 @@
|
|
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="#M000013">add_xml</a>
|
90
|
+
<a href="#M000011">connection</a>
|
91
|
+
<a href="#M000012">connection=</a>
|
92
|
+
<a href="#M000010">establish_connection</a>
|
93
|
+
<a href="#M000014">mod_xml</a>
|
91
94
|
</div>
|
92
95
|
</div>
|
93
96
|
|
@@ -107,19 +110,43 @@
|
|
107
110
|
|
108
111
|
<!-- if method_list -->
|
109
112
|
<div id="methods">
|
110
|
-
<h3 class="section-bar">Public
|
113
|
+
<h3 class="section-bar">Public Class methods</h3>
|
111
114
|
|
112
|
-
<div id="method-
|
113
|
-
<a name="
|
115
|
+
<div id="method-M000011" class="method-detail">
|
116
|
+
<a name="M000011"></a>
|
114
117
|
|
115
118
|
<div class="method-heading">
|
116
|
-
<a href="Base.src/
|
117
|
-
onclick="popupCode('Base.src/
|
118
|
-
<span class="method-name">
|
119
|
+
<a href="Base.src/M000011.html" target="Code" class="method-signature"
|
120
|
+
onclick="popupCode('Base.src/M000011.html');return false;">
|
121
|
+
<span class="method-name">connection</span><span class="method-args">()</span>
|
122
|
+
</a>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<div class="method-description">
|
126
|
+
<p>
|
127
|
+
Returns the current <a href="../Connection.html">Connection</a>
|
128
|
+
</p>
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
<div id="method-M000012" class="method-detail">
|
133
|
+
<a name="M000012"></a>
|
134
|
+
|
135
|
+
<div class="method-heading">
|
136
|
+
<a href="Base.src/M000012.html" target="Code" class="method-signature"
|
137
|
+
onclick="popupCode('Base.src/M000012.html');return false;">
|
138
|
+
<span class="method-name">connection=</span><span class="method-args">(connection)</span>
|
119
139
|
</a>
|
120
140
|
</div>
|
121
141
|
|
122
142
|
<div class="method-description">
|
143
|
+
<p>
|
144
|
+
Sets the current <a href="../Connection.html">Connection</a>
|
145
|
+
</p>
|
146
|
+
<pre>
|
147
|
+
connection = QuickBooks::Connection.new('user', 'pass', 'My Test App')
|
148
|
+
QuickBooks::Models::Base.connection = connection
|
149
|
+
</pre>
|
123
150
|
</div>
|
124
151
|
</div>
|
125
152
|
|
@@ -129,6 +156,41 @@
|
|
129
156
|
<div class="method-heading">
|
130
157
|
<a href="Base.src/M000010.html" target="Code" class="method-signature"
|
131
158
|
onclick="popupCode('Base.src/M000010.html');return false;">
|
159
|
+
<span class="method-name">establish_connection</span><span class="method-args">(user, password, application_name, host="localhost", port=3790, mode='multiUser')</span>
|
160
|
+
</a>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div class="method-description">
|
164
|
+
<p>
|
165
|
+
Establishes a connection to the <a
|
166
|
+
href="../../QuickBooks.html">QuickBooks</a> RDS Server for all Model
|
167
|
+
Classes
|
168
|
+
</p>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
173
|
+
|
174
|
+
<div id="method-M000013" class="method-detail">
|
175
|
+
<a name="M000013"></a>
|
176
|
+
|
177
|
+
<div class="method-heading">
|
178
|
+
<a href="Base.src/M000013.html" target="Code" class="method-signature"
|
179
|
+
onclick="popupCode('Base.src/M000013.html');return false;">
|
180
|
+
<span class="method-name">add_xml</span><span class="method-args">()</span>
|
181
|
+
</a>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
<div class="method-description">
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<div id="method-M000014" class="method-detail">
|
189
|
+
<a name="M000014"></a>
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<a href="Base.src/M000014.html" target="Code" class="method-signature"
|
193
|
+
onclick="popupCode('Base.src/M000014.html');return false;">
|
132
194
|
<span class="method-name">mod_xml</span><span class="method-args">()</span>
|
133
195
|
</a>
|
134
196
|
</div>
|