Sha256: 2b84e7006218fcaf3618e7a51d1f01ccf1676bedfd190625dc13f696ee739408

Contents?: true

Size: 382 Bytes

Versions: 22

Compression:

Stored size: 382 Bytes

Contents

module Stackify
  class AuthWorker < Worker

    def initialize name = 'Authorisation worker'
      super
      @type = :auth
    end

    def after_perform result
      if result.try(:status) == 200
        Stackify.send :authorized!
        Stackify.successfull_authorisation result
      else
        Stackify.unsuccessfull_authorisation result, self
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
stackify-api-ruby-2.1.0 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-2.1.0.beta1 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-2.0.0 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.3.0.beta1 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.2.10 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.2.9 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.2.7 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.2.4 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.2.3 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.1.0 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.15 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.14 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.13 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.12 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.11 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.10 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.9 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.8 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.7 lib/stackify/workers/auth_worker.rb
stackify-api-ruby-1.0.6 lib/stackify/workers/auth_worker.rb