Class OpenWFE::InMemoryHistory
In: lib/openwfe/expool/history.rb
Parent: BaseHistory

The simplest implementation, stores all history entries in memory.

DO NOT USE IN PRODUCTION, it will trigger an ‘out of memory’ error sooner or later.

Is only used for unit testing purposes.

Methods

entries   new   to_s  

Public Class methods

[Source]

     # File lib/openwfe/expool/history.rb, line 118
118:         def initialize (service_name, application_context)
119:             super
120: 
121:             @output = []
122:         end

Public Instance methods

Returns the array of entries.

[Source]

     # File lib/openwfe/expool/history.rb, line 127
127:         def entries
128:             @output
129:         end

Returns all the entries as a String.

[Source]

     # File lib/openwfe/expool/history.rb, line 134
134:         def to_s
135:             s = ""
136:             @output.each do |entry|
137:                 s << entry.to_s
138:             end
139:             s
140:         end

[Validate]