module Unlearn::GitHubAPI::Token
Public Class Methods
get()
click to toggle source
# File lib/unlearn/github_api/token.rb, line 10 def self.get @@token end
is_valid?(token)
click to toggle source
# File lib/unlearn/github_api/token.rb, line 14 def self.is_valid?(token) !!token.match(/^[a-f0-9]{40}$/) end
set(token)
click to toggle source
# File lib/unlearn/github_api/token.rb, line 6 def self.set(token) @@token = token end