Class: BankValInternational::GetABA
- Inherits:
-
Object
- Object
- BankValInternational::GetABA
- Defined in:
- lib/BankValInternational.rb
Overview
BankValInternational::GetABA
Class to control calls to getABAdetails
Synopsis
requires ‘BankValInternational’
Instance Method Summary collapse
-
#bankval_int_getaba(*args) ⇒ Object
Method to control calls to getABAdetails.
Instance Method Details
#bankval_int_getaba(*args) ⇒ Object
Method to control calls to getABAdetails
Parameters
- 1.Return Format
-
must be either ‘json’, ‘xml’ or ‘csv’
- 2.ABA Number
-
the number for validation
- 3.UserId
-
can obtained from www.unifiedsoftware.co.uk/freetrial/free-trial-home.html
- 4.PIN
-
can obtained from www.unifiedsoftware.co.uk/freetrial/free-trial-home.html
The parameters must be passed in the order shown above
Returns
The response from the webservice is returned as a string in either: *XML format *json format *csv format depending on the Return Format Parameter passed in
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/BankValInternational.rb', line 215 def bankval_int_getaba(*args) @format = args[0].downcase @aba = args[1] @userid = args[2] @pin = args[3] if args.size !=4 return "ERROR - not enough parameters supplied" end format_validation if @error_string != nil format_error_string return @error_string end build_req_url return "#{BankValInternational::GoValidate.new.validate(@service_url)}" end |