Class: Stratify::GitHub::Event::MemberEvent
- Inherits:
-
Object
- Object
- Stratify::GitHub::Event::MemberEvent
- Defined in:
- lib/stratify-github/events.rb
Class Method Summary collapse
Class Method Details
.make(activity, api_hash) ⇒ Object
145 146 147 148 149 150 |
# File 'lib/stratify-github/events.rb', line 145 def self.make(activity, api_hash) activity.action = api_hash['payload']['action'] activity.repository = api_hash['url'] activity.thing = api_hash['payload']['member']['login'] activity end |
.text(activity) ⇒ Object
151 152 153 |
# File 'lib/stratify-github/events.rb', line 151 def self.text(activity) "#{activity.actor} #{activity.action} #{activity.thing} as a collaborator to #{activity.repository}" end |