Class: CaptainHook::DSL::HandlePostReceive

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/captain_hook/dsl/handle_post_receive.rb

Instance Method Summary collapse

Methods included from Base

#run

Constructor Details

#initialize(post_receive_event) ⇒ HandlePostReceive

Returns a new instance of HandlePostReceive.



6
7
8
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 6

def initialize(post_receive_event)
  @post_receive_event = post_receive_event
end

Instance Method Details

#authorObject



18
19
20
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 18

def author
  @post_receive_event.author
end

#messageObject



10
11
12
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 10

def message
  @post_receive_event.message
end

#ref_nameObject



14
15
16
# File 'lib/captain_hook/dsl/handle_post_receive.rb', line 14

def ref_name
  @post_receive_event.ref_name
end