Class: OpenWFE::Extras::Entry
- Inherits:
-
Object
- Object
- OpenWFE::Extras::Entry
- Defined in:
- lib/openwfe/extras/misc/activityfeed.rb
Overview
A workitem event as kept
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#participant_name ⇒ Object
Returns the value of attribute participant_name.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#upon ⇒ Object
Returns the value of attribute upon.
-
#workitem ⇒ Object
Returns the value of attribute workitem.
Instance Method Summary collapse
- #as_atom_entry ⇒ Object
-
#initialize ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize ⇒ Entry
Returns a new instance of Entry.
71 72 73 74 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 71 def initialize @update = Time.now end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
64 65 66 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 64 def id @id end |
#participant_name ⇒ Object
Returns the value of attribute participant_name.
67 68 69 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 67 def participant_name @participant_name end |
#updated ⇒ Object
Returns the value of attribute updated.
65 66 67 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 65 def updated @updated end |
#upon ⇒ Object
Returns the value of attribute upon.
68 69 70 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 68 def upon @upon end |
#workitem ⇒ Object
Returns the value of attribute workitem.
69 70 71 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 69 def workitem @workitem end |
Instance Method Details
#as_atom_entry ⇒ Object
76 77 78 79 80 81 82 83 84 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 76 def as_atom_entry e = Atom::Entry.new e.id = @id e.updated = @updated e end |