Class: OpenGithubIssue::GithubIssue
- Inherits:
-
BaseService
- Object
- BaseService
- OpenGithubIssue::GithubIssue
- Defined in:
- lib/open_github_issue/github_issue.rb
Instance Method Summary collapse
- #call ⇒ Object
- #client ⇒ Object
-
#initialize(title, message) ⇒ GithubIssue
constructor
A new instance of GithubIssue.
- #repo ⇒ Object
Methods inherited from BaseService
Constructor Details
#initialize(title, message) ⇒ GithubIssue
Returns a new instance of GithubIssue.
3 4 5 6 |
# File 'lib/open_github_issue/github_issue.rb', line 3 def initialize(title, ) @title = title = end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/open_github_issue/github_issue.rb', line 8 def call client.create_issue(repo, @title, ) end |
#client ⇒ Object
12 13 14 |
# File 'lib/open_github_issue/github_issue.rb', line 12 def client @client ||= Octokit::Client.new(access_token: OpenGithubIssue.configuration.github_access_token) end |
#repo ⇒ Object
16 17 18 |
# File 'lib/open_github_issue/github_issue.rb', line 16 def repo @repo ||= OpenGithubIssue.configuration.github_repo end |