lib/tracksale/configuration.rb in tracksale-0.0.3 vs lib/tracksale/configuration.rb in tracksale-0.0.4
- old
+ new
@@ -1,5 +1,16 @@
module Tracksale
class Configuration
attr_accessor :key
+ attr_accessor :client
+
+ def client
+ @client ||= Tracksale::Client
+ end
+
+ def force_dummy_client(on=true)
+ @client = on ?
+ Tracksale::DummyClient :
+ Tracksale::Client
+ end
end
end