Module: Picasa::Authenticatable

Included in:
API
Defined in:
lib/picasa/authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#authenticated?Boolean

Check whether user is authenticated

Returns:

  • (Boolean)


16
17
18
# File 'lib/picasa/authenticatable.rb', line 16

def authenticated?
  credentials.values.all?
end

#credentialsObject



4
5
6
7
8
9
10
11
# File 'lib/picasa/authenticatable.rb', line 4

def credentials
  {
    :refresh_token => refresh_token,
    :access_token => access_token,
    :expires_in => expires_in,
    :issued_at => issued_at
  }
end