Class: ActivityFeed::ReleaseEvent

Inherits:
Event
  • Object
show all
Defined in:
app/models/activity_feed.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#project, #time

Instance Method Summary collapse

Methods inherited from Event

#date

Constructor Details

#initialize(release) ⇒ ReleaseEvent

Returns a new instance of ReleaseEvent.



93
94
95
96
# File 'app/models/activity_feed.rb', line 93

def initialize(release)
  @release = release
  super(release.created_at, release.project)
end

Instance Attribute Details

#releaseObject (readonly)

Returns the value of attribute release.



91
92
93
# File 'app/models/activity_feed.rb', line 91

def release
  @release
end

Instance Method Details

#actorObject



106
107
108
# File 'app/models/activity_feed.rb', line 106

def actor
  release.user
end

#cssObject



98
99
100
# File 'app/models/activity_feed.rb', line 98

def css
  "timeline-event-release"
end

#iconObject



102
103
104
# File 'app/models/activity_feed.rb', line 102

def icon
  "fa fa-paper-plane"
end