Class: CommitLive::Github
- Inherits:
-
Object
- Object
- CommitLive::Github
- Defined in:
- lib/commit-live/github.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize ⇒ Github
constructor
A new instance of Github.
Constructor Details
#initialize ⇒ Github
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
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/commit-live/github.rb', line 6 def client @client end |