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.



71
72
73
74
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 71

def initialize

    @update = Time.now
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



64
65
66
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 64

def id
  @id
end

#participant_nameObject

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

#updatedObject

Returns the value of attribute updated.



65
66
67
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 65

def updated
  @updated
end

#uponObject

Returns the value of attribute upon.



68
69
70
# File 'lib/openwfe/extras/misc/activityfeed.rb', line 68

def upon
  @upon
end

#workitemObject

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_entryObject



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