class Kpm::AuthToken
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/kpm/auth_token.rb, line 4 def initialize super ({"expires_in" => 3600, "header" => "Authorization", "header_format" => "%s"}) end
Public Instance Methods
new_auth_token()
click to toggle source
# File lib/kpm/auth_token.rb, line 10 def new_auth_token() # auth_response = Kpm.auth(body: {user: {email: Kpm.user, password: Kpm.password}}.to_json) # auth_response.authentication_token update({"token" => "no-token-required-yet"}) end