Sha256: 88f9eef40c7e6cc082c976f644ca519db5f7c1fe4265bbaeb7269cb6b98cb369

Contents?: true

Size: 477 Bytes

Versions: 10

Compression:

Stored size: 477 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
angellist_api-0.1.0 lib/angellist_api/authentication.rb
angellist_api-0.0.9 lib/angellist_api/authentication.rb
angellist_api-0.0.8 lib/angellist_api/authentication.rb
angellist_api-0.0.7 lib/angellist_api/authentication.rb
angellist_api-0.0.6 lib/angellist_api/authentication.rb
angellist_api-0.0.5 lib/angellist_api/authentication.rb
angellist_api-0.0.4 lib/angellist_api/authentication.rb
angellist_api-0.0.3 lib/angellist_api/authentication.rb
angellist_api-0.0.2 lib/angellist_api/authentication.rb
angellist_api-0.0.1 lib/angellist_api/authentication.rb