Class: GoogleDrive::PersistentSession
- Inherits:
-
Object
- Object
- GoogleDrive::PersistentSession
- Extended by:
- Forwardable
- Includes:
- CredentialStorage
- Defined in:
- lib/google_drive/persistent_session/version.rb,
lib/google_drive/persistent_session/persistent_session.rb
Constant Summary collapse
- VERSION =
'0.2.0'
- THREAD_KEY =
"#{self.to_s}::THREAD_KEY"
Constants included from CredentialStorage
CredentialStorage::DEFAULE_FILE_STORE_PATH
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PersistentSession
constructor
A new instance of PersistentSession.
Methods included from CredentialStorage
#credential_stored?, #storage, #store, store, store=
Constructor Details
#initialize ⇒ PersistentSession
Returns a new instance of PersistentSession.
13 14 15 16 |
# File 'lib/google_drive/persistent_session/persistent_session.rb', line 13 def initialize @highline = HighLine.new ensure_login end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object (private)
77 78 79 80 |
# File 'lib/google_drive/persistent_session/persistent_session.rb', line 77 def method_missing(method_name, *args , &block) ensure_login session.send(method_name, *args, &block) end |
Class Method Details
.login ⇒ Object
9 10 11 |
# File 'lib/google_drive/persistent_session/persistent_session.rb', line 9 def self.login self.new end |