Class: LinuxHub::Github
- Inherits:
-
Object
- Object
- LinuxHub::Github
- Includes:
- Singleton
- Defined in:
- lib/linux-hub/github.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
writeonly
Sets the attribute access_token.
Instance Method Summary collapse
Instance Attribute Details
#access_token=(value) ⇒ Object (writeonly)
Sets the attribute access_token
7 8 9 |
# File 'lib/linux-hub/github.rb', line 7 def access_token=(value) @access_token = value end |
Instance Method Details
#client ⇒ Object
9 10 11 |
# File 'lib/linux-hub/github.rb', line 9 def client @client ||= Octokit::Client.new(access_token: @access_token) end |