module SimpleTokenAuth::TokenAuthenticatable
Public Instance Methods
auth_token()
click to toggle source
# File lib/simple_token_auth/token_authenticatable.rb, line 17 def auth_token api_key.access_token end
renew_api_key()
click to toggle source
# File lib/simple_token_auth/token_authenticatable.rb, line 21 def renew_api_key api_key.renew! end
Private Instance Methods
ensure_api_key()
click to toggle source
# File lib/simple_token_auth/token_authenticatable.rb, line 27 def ensure_api_key build_api_key unless api_key.present? end