Module: APIConnection
- Included in:
- AlsoEnergy::Client, AlsoEnergy::HardWare
- Defined in:
- lib/also_energy/connection.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/also_energy/connection.rb', line 2 def connection @connect = Savon.client do |globals| globals.wsdl "http://www.alsoenergy.com/WebAPI/WebAPI.svc?wsdl" globals.endpoint "https://www.alsoenergy.com/WebAPI/WebAPI.svc" globals.env_namespace :soapenv globals.namespaces("xmlns:als1" => "http://schemas.datacontract.org/2004/07/AlsoEnergyAPI.Data") globals.namespace_identifier :als end end |