lib/nightcrawler_swift/connection.rb in nightcrawler_swift-0.2.3 vs lib/nightcrawler_swift/connection.rb in nightcrawler_swift-0.3.0
- old
+ new
@@ -4,9 +4,10 @@
# Hash with: bucket, tenant_name, username, password, auth_url
#
def initialize opts = {}
@opts = OpenStruct.new opts
+ raise NightcrawlerSwift::Exceptions::ConfigurationError.new "max_age should be an Integer" if @opts.max_age and not @opts.max_age.is_a? Numeric
end
def connect!
auth_response = authenticate!