Sha256: 38d5b566eab3e06dd132ccb8f520916073685388bc3090ae42e47e2a2f79752f

Contents?: true

Size: 468 Bytes

Versions: 13

Compression:

Stored size: 468 Bytes

Contents

module Desk
  # @private
  module Authentication
    private

    # Authentication hash
    #
    # @return [Hash]
    def authentication
      {
        :consumer_key => consumer_key,
        :consumer_secret => consumer_secret,
        :token => oauth_token,
        :token_secret => oauth_token_secret
      }
    end

    # Check whether user is authenticated
    #
    # @return [Boolean]
    def authenticated?
      authentication.values.all?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
desk-1.0.8 lib/desk/authentication.rb
desk-1.0.7 lib/desk/authentication.rb
desk-1.0.6 lib/desk/authentication.rb
desk-1.0.5 lib/desk/authentication.rb
desk-1.0.4 lib/desk/authentication.rb
desk-1.0.3 lib/desk/authentication.rb
desk-1.0.2 lib/desk/authentication.rb
desk-1.0.1 lib/desk/authentication.rb
desk-1.0.0 lib/desk/authentication.rb
desk-0.3.3 lib/desk/authentication.rb
desk-0.3.2 lib/desk/authentication.rb
desk-0.3.1 lib/desk/authentication.rb
desk-0.3.0 lib/desk/authentication.rb