lib/stackify/authorization/authorizable.rb in stackify-api-ruby-1.0.2 vs lib/stackify/authorization/authorizable.rb in stackify-api-ruby-1.0.3
- old
+ new
@@ -8,15 +8,15 @@
module ClassMethods
@@authorized = false
@@auth_lock = Mutex.new
@@auth_client = nil
- def authorize attempts=3, delay_time = 20
+ def authorize attempts=3
@@auth_lock.synchronize do
return unless @@auth_client.nil?
@@auth_client = Stackify::Authorizable::AuthorizationClient.new
- @@auth_client.auth attempts, delay_time
+ @@auth_client.auth attempts
end
end
def authorized?
@@auth_lock.synchronize do
@@ -51,10 +51,10 @@
end
end
def response_string r
return '' if r.nil?
- "Code: #{r.try(:code)}, Message: '#{r.try(:msg)}'"
+ "Status: #{r.try(:status)}, Message: '#{r.try(:body)}'"
end
end
end