Skip to content

Commit 4ba8536

Browse files
committed
add serverVersion callback
1 parent bcc044e commit 4ba8536

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ On installation this plugin creates the following files:
1212
* app/controllers/qbwc_controller.rb
1313
* app/apis/qbwc_api.rb
1414
* app/helpers/qbwc_helper.rb
15-
* test/functional/qbwc_controller_test.rb
15+
* test/functional/qbwc_controller\_test.rb
1616
* config/qbwc.qwc
1717

1818
The QbwcController includes a very simple example of querying QuickBooks and displaying a customer list.

install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def safe_copy(src, dest)
1818
safe_copy File.join(plugin_root, 'templates/example_qbwc_controller_test.rb'), File.join(app_root, 'test/functional/qbwc_controller_test.rb')
1919
safe_copy File.join(plugin_root, 'templates/example_qbwc.qwc'), File.join(app_root, 'config/qbwc.qwc')
2020

21-
puts IO.read(File.join(File.dirname(__FILE__), 'README'))
21+
puts IO.read(File.join(File.dirname(__FILE__), 'README.markdown'))

templates/example_qbwc_api.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
class QbwcApi < ActionWebService::API::Base
22
inflect_names false
33

4+
# --- [ QBWC server version control ] ---
5+
# Expects:
6+
# * string ticket = A GUID based ticket string to maintain identity of QBWebConnector
7+
# Returns string:
8+
# * Return a string describing the server version and any other information that you want your user to see.
9+
api_method :serverVersion,
10+
:expects => [{:ticket => :string}],
11+
:returns => [:string]
12+
413
# --- [ QBWC version control ] ---
514
# Expects:
615
# * string strVersion = QBWC version number

templates/example_qbwc_controller.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
class QbwcController < ApplicationController
44
before_filter :set_soap_header
55

6+
# --- [ QBWC server version control ] ---
7+
# Expects:
8+
# * string ticket = A GUID based ticket string to maintain identity of QBWebConnector
9+
# Returns string:
10+
# * Return a string describing the server version and any other information that you want your user to see.
11+
def serverVersion(ticket)
12+
'Describe your app version here...'
13+
end
14+
615
# --- [ QBWC version control ] ---
716
# Expects:
817
# * string strVersion = QBWC version number

0 commit comments

Comments
 (0)