Sha256: 8155fa5b2d22f32fa797db30cf74e3620bc77a27d549b0b5df3fda24a18bf68a

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 Bytes

Contents

require 'octokit'

module ZenhubRuby
  class Github
    attr_reader :auth

    def initialize(access_token)
      @auth = Octokit::Client.new(access_token: access_token)
    end

    def repo_id(repo_name)
      auth.repo(repo_name).id
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zenhub_ruby-0.2.1 lib/zenhub_ruby/github.rb