Class: GitHub::Payload::Formatter::DeleteEvent

Inherits:
Event
  • Object
show all
Includes:
Helpers::Push
Defined in:
lib/github/payload/formatter/delete_event.rb

Instance Attribute Summary

Attributes inherited from Event

#payload

Instance Method Summary collapse

Methods included from Helpers::Push

#after_sha, #after_sha_url, #base_ref, #base_ref_name, #before_sha, #before_sha_url, #branch_url, #commit_messages, #commits, #compare_url, #created?, #deleted?, #distinct_commits, #forced?, #format_commit_message, #name_with_owner, #owner_name, #pusher_name, #ref, #ref_name, #repo_name, #repo_url, sample_payload, #tag?

Methods inherited from Event

#initialize, objectify

Constructor Details

This class inherits a constructor from GitHub::Payload::Formatter::Event

Instance Method Details

#sender_nameObject



11
12
13
# File 'lib/github/payload/formatter/delete_event.rb', line 11

def sender_name
  payload['sender']['login']
end

#summary_messageObject



15
16
17
# File 'lib/github/payload/formatter/delete_event.rb', line 15

def summary_message
  "[#{repo_name}] #{sender_name} just deleted #{payload['ref']}."
end

#summary_urlObject



7
8
9
# File 'lib/github/payload/formatter/delete_event.rb', line 7

def summary_url
  payload['repository']['html_url']
end