Class: GithubApi
- Inherits:
-
Object
- Object
- GithubApi
- Defined in:
- lib/github.rb
Constant Summary collapse
- ORG =
'YTech'
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
Instance Method Summary collapse
-
#initialize ⇒ GithubApi
constructor
A new instance of GithubApi.
Constructor Details
#initialize ⇒ GithubApi
Returns a new instance of GithubApi.
7 8 9 10 11 12 |
# File 'lib/github.rb', line 7 def initialize @api = Github.new( basic_auth: "#{ENV['GITHUB_API_USER']}:#{ENV['GITHUB_API_PASS']}", org: ORG ) end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
2 3 4 |
# File 'lib/github.rb', line 2 def api @api end |