Class: CommitLive::Github

Inherits:
Object
  • Object
show all
Defined in:
lib/commit-live/github.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGithub

Returns a new instance of Github.



7
8
9
10
11
12
13
14
# File 'lib/commit-live/github.rb', line 7

def initialize()
      netrc = CommitLive::NetrcInteractor.new()
      netrc.read
      token = netrc.password
      if !token.nil?
    @client = Octokit::Client.new(:access_token => token)
      end
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/commit-live/github.rb', line 6

def client
  @client
end