Sha256: e73464c40382b83704c9985b47a310c314f8cee8dc392604c14c3a8b397b7d4c

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

module AngellistApi
  module Authentication
    private

    # Authentication hash
    #
    # @return [Hash]
    def authentication
      {
        :access_token => respond_to?(:access_token) ? access_token : nil,
      }
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
angellist_api-1.1.0 lib/angellist_api/authentication.rb
angellist_api-1.0.7 lib/angellist_api/authentication.rb
angellist_api-1.0.6 lib/angellist_api/authentication.rb
angellist_api-1.0.5 lib/angellist_api/authentication.rb
angellist_api-1.0.4 lib/angellist_api/authentication.rb
angellist_api-1.0.3 lib/angellist_api/authentication.rb
angellist_api-1.0.2 lib/angellist_api/authentication.rb