lib/balanced.rb in balanced-0.3.4 vs lib/balanced.rb in balanced-0.3.5
- old
+ new
@@ -11,10 +11,11 @@
module Balanced
@client = nil
@config = {
:scheme => 'https',
+
:host => 'api.balancedpayments.com',
:port => 443,
:version => '1',
}
@@ -23,9 +24,13 @@
attr_accessor :client
attr_accessor :config
def configure(api_key=nil, options={})
@client = Balanced::Client.new(api_key, @config.merge(options))
+ end
+
+ def is_configured_with_api_key?
+ !@client.api_key.nil?
end
def split_the_uri uri
URI.parse(uri).path.sub(/\/$/, '').split('/')
end