class Github::Authentication::Generator::Personal

Public Class Methods

new(github_token:) click to toggle source
# File lib/github/authentication/generator/personal.rb, line 9
def initialize(github_token:)
  @github_token = github_token
end

Public Instance Methods

generate() click to toggle source
# File lib/github/authentication/generator/personal.rb, line 13
def generate
  a_year_from_now = Time.now.utc + 31_556_952
  Token.new(@github_token, a_year_from_now)
end