Class: SOAP::MultiService::Client::Config
- Inherits:
-
Object
- Object
- SOAP::MultiService::Client::Config
- Defined in:
- lib/soapex/client.rb
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/soapex/client.rb', line 20 def initialize(={}) @sandbox = false IO.foreach(filename) do |line| next if line =~ /^#/ name, value = line.split('=') value = ([name] || value.strip) instance_variable_set(atsym(name), value) end @sandbox = ['True', 'true', '1'].include?(@sandbox.strip) end |
Instance Method Details
#filename ⇒ Object
31 32 33 34 |
# File 'lib/soapex/client.rb', line 31 def filename raise NotImplementedError.new( 'method filename must be implemented by a subclass') end |