Sha256: 7e67013a7ac2f62269b58d79db080a7ded908fe1a5e12c5a840d19488ea479ba

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

require "github/authentication/token"

module Github
  module Authentication
    module Generator
      class Personal
        def initialize(github_token:)
          @github_token = github_token
        end

        def generate
          a_year_from_now = Time.now.utc + 31_556_952
          Token.new(@github_token, a_year_from_now)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github-authentication-0.1.2 lib/github/authentication/generator/personal.rb
github-authentication-0.1.0 lib/github/authentication/generator/personal.rb