Class: GoogleApi::SessionMethods

Inherits:
Object
  • Object
show all
Defined in:
lib/google_api/session/session_methods.rb

Direct Known Subclasses

Ga::Session, GoogleApi::Shorten::Session

Class Method Summary collapse

Class Method Details

._sessionObject



4
5
6
# File 'lib/google_api/session/session_methods.rb', line 4

def self._session
  self.class_variable_get(:@@session)
end

.apiObject



32
33
34
# File 'lib/google_api/session/session_methods.rb', line 32

def self.api
  _session.api
end

.check_sessionObject



24
25
26
# File 'lib/google_api/session/session_methods.rb', line 24

def self.check_session
  _session.check_session
end

.check_session!Object



28
29
30
# File 'lib/google_api/session/session_methods.rb', line 28

def self.check_session!
  _session.check_session!
end

.clientObject



36
37
38
# File 'lib/google_api/session/session_methods.rb', line 36

def self.client
  _session.client
end

.login(code = nil) ⇒ Object



16
17
18
# File 'lib/google_api/session/session_methods.rb', line 16

def self.(code = nil)
  _session.(code)
end

.login_by_certObject



8
9
10
# File 'lib/google_api/session/session_methods.rb', line 8

def self.
  _session.
end

.login_by_cert!Object



12
13
14
# File 'lib/google_api/session/session_methods.rb', line 12

def self.
  _session.
end

.login_by_line(server = 'http://localhost/oauth2callback', port = 0) ⇒ Object



20
21
22
# File 'lib/google_api/session/session_methods.rb', line 20

def self.(server = 'http://localhost/oauth2callback', port = 0)
  _session.(server, port)
end