Class: Stratify::GitHub::Event::GistEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/stratify-github/events.rb

Overview

Unused? Unseen in the wild. class ForkApplyEvent

def self.make(activity, api_hash)
  activity.thing = api_hash['head']
  activity
end
def self.text(activity)
  "#{activity.actor} applied a patch in the Fork Queue to #{activity.head}"
end

end

Class Method Summary collapse

Class Method Details

.make(activity, api_hash) ⇒ Object



99
100
101
102
103
# File 'lib/stratify-github/events.rb', line 99

def self.make(activity, api_hash)
  activity.action  = api_hash['payload']['action']
  activity.payload = api_hash['payload']['desc']
  activity
end

.text(activity) ⇒ Object



104
105
106
# File 'lib/stratify-github/events.rb', line 104

def self.text(activity)
  "#{activity.actor} #{activity.action}d a gist: #{activity.payload}"
end