Class: Stratify::GitHub::Event::IssueCommentEvent

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

Class Method Summary collapse

Class Method Details

.make(activity, api_hash) ⇒ Object



124
125
126
127
# File 'lib/stratify-github/events.rb', line 124

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

.text(activity) ⇒ Object



128
129
130
# File 'lib/stratify-github/events.rb', line 128

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