Class: OpenWFE::Extras::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/openwfe/extras/misc/activityfeed.rb

Overview

A workitem event as kept

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEntry

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

#idObject

Returns the value of attribute id.



79
80
81
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 79

def id
  @id
end

#participant_nameObject

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

#updatedObject

Returns the value of attribute updated.



80
81
82
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 80

def updated
  @updated
end

#uponObject

Returns the value of attribute upon.



83
84
85
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 83

def upon
  @upon
end

#workitemObject

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_entryObject



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