Class: ActivityFeed::TicketEvent
- Defined in:
- app/models/activity_feed.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ticket ⇒ Object
readonly
Returns the value of attribute ticket.
Attributes inherited from Event
Instance Method Summary collapse
- #actor ⇒ Object
-
#initialize(time, ticket) ⇒ TicketEvent
constructor
A new instance of TicketEvent.
Methods inherited from Event
Constructor Details
#initialize(time, ticket) ⇒ TicketEvent
Returns a new instance of TicketEvent.
47 48 49 50 |
# File 'app/models/activity_feed.rb', line 47 def initialize(time, ticket) @ticket = ticket super time, ticket.project end |
Instance Attribute Details
#ticket ⇒ Object (readonly)
Returns the value of attribute ticket.
45 46 47 |
# File 'app/models/activity_feed.rb', line 45 def ticket @ticket end |
Instance Method Details
#actor ⇒ Object
52 53 54 |
# File 'app/models/activity_feed.rb', line 52 def actor ticket.reporter end |