lib/iremix.rb in iremix-ruby-0.0.1 vs lib/iremix.rb in iremix-ruby-0.0.2
- old
+ new
@@ -1,4 +1,21 @@
-require "iremix/all"
+require "iremix/version"
+require 'iremix/config'
module Iremix
+ class << self
+ attr_accessor :config
+
+ def callback_url
+ config.callback_url
+ end
+
+ def authorize_url(client)
+ client.auth_code.authorize_url(:redirect_url => callback_url)
+ end
+
+ private
+ def config
+ @config ||= Iremix::Config
+ end
+ end
end