Class: Morale::Authorization

Inherits:
Object
  • Object
show all
Defined in:
lib/morale/authorization.rb

Class Method Summary collapse

Class Method Details

.clientObject



6
7
8
# File 'lib/morale/authorization.rb', line 6

def client
  Morale::Client.new(Morale::Account.subdomain, Morale::Account.api_key)
end

.loginObject



10
11
12
13
# File 'lib/morale/authorization.rb', line 10

def 
  Morale::Account.delete_credentials
  Morale::Account.get_credentials
end

.retry_login?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/morale/authorization.rb', line 15

def retry_login?
  Morale::Account.retry_login?
end