lib/inforouter/configuration.rb in inforouter-0.1.0 vs lib/inforouter/configuration.rb in inforouter-0.2.0

- old
+ new

@@ -1,13 +1,19 @@ module Inforouter #:nodoc: - # Inforouter gem configuration. + # infoRouter gem configuration. class Configuration - # Inforouter host. + # infoRouter WSDL. + attr_accessor :wsdl + # infoRouter host. attr_accessor :host - # Inforouter username. + # infoRouter username. attr_accessor :username - # Inforouter password. + # infoRouter password. attr_accessor :password + + def initialize(options = {}) + @wsdl = options[:wsdl] || File.dirname(__FILE__) + '/../../resources/inforouter.wsdl' + end # Check the configuration. # # Will raise a Inforouter::Errors::MissingConfigOption if any of the host or # the username are missing.