Class: Stratify::GitHub::Event::PublicEvent

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

Class Method Summary collapse

Class Method Details

.make(activity, api_hash) ⇒ Object



157
158
159
160
161
# File 'lib/stratify-github/events.rb', line 157

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

.text(activity) ⇒ Object



162
163
164
# File 'lib/stratify-github/events.rb', line 162

def self.text(activity)
  "#{activity.actor} opened #{activity.repository} to the public"
end