Class: OpenGithubIssue::Reporter

Inherits:
BaseService show all
Defined in:
lib/open_github_issue/reporter.rb

Instance Method Summary collapse

Methods inherited from BaseService

call

Constructor Details

#initialize(params, controller) ⇒ Reporter

Returns a new instance of Reporter.



3
4
5
6
# File 'lib/open_github_issue/reporter.rb', line 3

def initialize(params, controller)
  @params = params
  @controller = controller
end

Instance Method Details

#callObject



8
9
10
11
12
13
# File 'lib/open_github_issue/reporter.rb', line 8

def call
  GithubIssue.call(title, message)
  true
rescue Octokit::Error
  false
end