Module: Lelylan::Authentication

Included in:
Client
Defined in:
lib/lelylan/authentication.rb

Instance Method Summary collapse

Instance Method Details

#authenticated?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/lelylan/authentication.rb', line 7

def authenticated?
  !authentication.empty?
end

#authenticationObject



3
4
5
# File 'lib/lelylan/authentication.rb', line 3

def authentication
  token ? { token: token } : {}
end