Class: Stratify::GitHub::Event::IssuesEvent

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

Class Method Summary collapse

Class Method Details

.make(activity, api_hash) ⇒ Object



134
135
136
137
138
# File 'lib/stratify-github/events.rb', line 134

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

.text(activity) ⇒ Object



139
140
141
# File 'lib/stratify-github/events.rb', line 139

def self.text(activity)
  "#{activity.actor} #{activity.action} an issue on #{activity.repository}"
end