lib/lolp/client.rb in lolp-0.2.1 vs lib/lolp/client.rb in lolp-0.3.0
- old
+ new
@@ -1,14 +1,21 @@
require 'lolp/connection'
-require 'lolp/project'
require 'lolp/configuration'
+require 'lolp/client/project'
+require 'lolp/client/authentication'
module Lolp
class Client
- include Lolp::Project
include Lolp::Configuration
+ include Lolp::Connection
+ include Lolp::Client::Project
+ include Lolp::Client::Authentication
- def connection
- @connection ||= Lolp::Connection.new(config)
+ def initialize(config = {})
+ defaults
+
+ config.each do |k,v|
+ instance_variable_set(:"@#{key}", v)
+ end
end
end
end