Sha256: edd0b1dedfa403da7adc15b2269d85523edb16f348bc949f4d4813cc8ac54525

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

Stored size: 438 Bytes

Contents

module Orkut
  module Authenticatable

    # Credentials hash
    #
    # @return [Hash]
    def credentials
      {
        :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?
      credentials.values.all?
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
orkut-0.0.0.8 lib/orkut/authenticatable.rb
orkut-0.0.0.7 lib/orkut/authenticatable.rb
orkut-0.0.0.6 lib/orkut/authenticatable.rb
orkut-0.0.0.5 lib/orkut/authenticatable.rb
orkut-0.0.0.4 lib/orkut/authenticatable.rb
orkut-0.0.0.3 lib/orkut/authenticatable.rb
orkut-0.0.0.2 lib/orkut/authenticatable.rb
orkut-0.0.0.1 lib/orkut/authenticatable.rb