Class: Octogate::Event::PullRequest

Inherits:
Base
  • Object
show all
Defined in:
lib/octogate/events/pull_request.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

register_event

Class Method Details

.parse(json) ⇒ Object



13
14
15
16
17
# File 'lib/octogate/events/pull_request.rb', line 13

def parse(json)
  payload = Oj.load(json).deep_symbolize_keys

  new(payload)
end

Instance Method Details

#default_conditionObject



20
21
22
# File 'lib/octogate/events/pull_request.rb', line 20

def default_condition
  action != "closed"
end