Class: Arachni::Data::Session
Overview
Data for Session.
Instance Attribute Summary collapse
- #configuration ⇒ Hash readonly
Class Method Summary collapse
Instance Method Summary collapse
- #clear ⇒ Object
- #dump(directory) ⇒ Object
-
#initialize ⇒ Session
constructor
A new instance of Session.
- #statistics ⇒ Object
Constructor Details
#initialize ⇒ Session
Returns a new instance of Session.
20 21 22 |
# File 'lib/arachni/data/session.rb', line 20 def initialize @configuration = {} end |
Instance Attribute Details
#configuration ⇒ Hash (readonly)
18 19 20 |
# File 'lib/arachni/data/session.rb', line 18 def configuration @configuration end |
Class Method Details
Instance Method Details
#clear ⇒ Object
40 41 42 |
# File 'lib/arachni/data/session.rb', line 40 def clear @configuration.clear end |
#dump(directory) ⇒ Object
28 29 30 31 32 |
# File 'lib/arachni/data/session.rb', line 28 def dump( directory ) FileUtils.mkdir_p( directory ) IO.binwrite( "#{directory}/configuration", Marshal.dump( @configuration ) ) end |
#statistics ⇒ Object
24 25 26 |
# File 'lib/arachni/data/session.rb', line 24 def statistics {} end |