Class: ResponCore::Rms::Github

Inherits:
Object
  • Object
show all
Defined in:
lib/rms/github.rb

Overview

github module

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGithub

Returns a new instance of Github.



10
11
12
13
14
15
16
17
18
# File 'lib/rms/github.rb', line 10

def initialize
  # Octokit.configure do |c|
  #   c.auto_paginate = true
  # end

  self.connection ||= Octokit::Client.new(
    access_token: ENV['GITHUB_ACCESS_TOKEN']
  )
end

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



8
9
10
# File 'lib/rms/github.rb', line 8

def connection
  @connection
end