lib/stackify/authorization/authorizable.rb in stackify-api-ruby-1.0.0 vs lib/stackify/authorization/authorizable.rb in stackify-api-ruby-1.0.1
- old
+ new
@@ -7,20 +7,20 @@
module ClassMethods
@@authorized = false
@@auth_lock = Mutex.new
@@auth_client = nil
-
+
def authorize attempts=3, delay_time = 20
@@auth_lock.synchronize do
return unless @@auth_client.nil?
@@auth_client = Stackify::Authorizable::AuthorizationClient.new
@@auth_client.auth attempts, delay_time
end
end
def authorized?
- @@auth_lock.synchronize do
+ @@auth_lock.synchronize do
@@authorized
end
end
def authorized!