Sha256: 24cb95d0a59b0cab1c0726df58411545fc31bbb57edf4f5522532b5dbbd81d1f
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
module Instapaper # @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 def consumer_tokens { :consumer_key => consumer_key, :consumer_secret => consumer_secret } end # Check whether user is authenticated # # @return [Boolean] def authenticated? authentication.values.all? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
instapaper-0.3.0 | lib/instapaper/authentication.rb |
instapaper-0.2.1 | lib/instapaper/authentication.rb |
instapaper-0.2.0 | lib/instapaper/authentication.rb |