Method: RubySwift#initialize
- Defined in:
- lib/ruby_swift.rb
#initialize(password, namespace = "ns1", http_adapter = :net_http) ⇒ RubySwift
Returns a new instance of RubySwift.
5 6 7 8 9 10 11 12 |
# File 'lib/ruby_swift.rb', line 5 def initialize(password, namespace="ns1", http_adapter=:net_http) HTTPI.adapter = http_adapter @password = password @client = Savon.client(endpoint: "http://suite.peoplelogic.com.au/server/includes/apis/soap.php", namespace: namespace, convert_request_keys_to: :none) end |