Sha256: bd6de60fba2ee08fe8b0ba6a35fd5cf345624ebaa2c39c0fa2bb243743d374d8

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

module Evrythng
  # @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

4 entries across 4 versions & 1 rubygems

Version Path
evrythng-0.0.5 lib/evrythng/authentication.rb
evrythng-0.0.3 lib/evrythng/authentication.rb
evrythng-0.0.2 lib/evrythng/authentication.rb
evrythng-0.0.1 lib/evrythng/authentication.rb