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.
86 87 88 89 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 86 def initialize @update = Time.now end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
79 80 81 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 79 def id @id end |
#participant_name ⇒ Object
Returns the value of attribute participant_name.
82 83 84 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 82 def participant_name @participant_name end |
#updated ⇒ Object
Returns the value of attribute updated.
80 81 82 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 80 def updated @updated end |
#upon ⇒ Object
Returns the value of attribute upon.
83 84 85 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 83 def upon @upon end |
#workitem ⇒ Object
Returns the value of attribute workitem.
84 85 86 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 84 def workitem @workitem end |
Instance Method Details
#as_atom_entry ⇒ Object
91 92 93 94 95 96 97 98 99 |
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 91 def as_atom_entry e = Atom::Entry.new e.id = @id e.updated = @updated e end |