Class: ResponCore::Rms::Github
- Inherits:
-
Object
- Object
- ResponCore::Rms::Github
- Defined in:
- lib/rms/github.rb
Overview
github module
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize ⇒ Github
constructor
A new instance of Github.
Constructor Details
#initialize ⇒ Github
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
#connection ⇒ Object
Returns the value of attribute connection.
8 9 10 |
# File 'lib/rms/github.rb', line 8 def connection @connection end |