Class: Stratify::GitHub::Event::FollowEvent

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

Overview

Unused? Unseen in the wild. class DownloadEvent

def make(activity, api_hash)
  activity
end
def text(activity)
  "A download occurred!"
end

end

Class Method Summary collapse

Class Method Details

.make(activity, api_hash) ⇒ Object



68
69
70
71
# File 'lib/stratify-github/events.rb', line 68

def self.make(activity, api_hash)
  activity.thing = api_hash['payload']['target']['login']
  activity
end

.text(activity) ⇒ Object



72
73
74
# File 'lib/stratify-github/events.rb', line 72

def self.text(activity)
  "#{activity.actor} followed #{activity.thing}"
end