Module: RCS::DeviceEvidence
- Defined in:
- lib/rcs-common/evidence/device.rb
Instance Method Summary collapse
- #content ⇒ Object
- #decode_content(common_info, chunks) {|info| ... } ⇒ Object
- #generate_content ⇒ Object
Instance Method Details
#content ⇒ Object
6 7 8 |
# File 'lib/rcs-common/evidence/device.rb', line 6 def content "The time is #{Time.now} and everything is ok... till now".to_utf16le_binary end |
#decode_content(common_info, chunks) {|info| ... } ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/rcs-common/evidence/device.rb', line 14 def decode_content(common_info, chunks) info = Hash[common_info] info[:data] = Hash.new if info[:data].nil? info[:data][:content] = chunks.join.utf16le_to_utf8 yield info if block_given? :delete_raw end |
#generate_content ⇒ Object
10 11 12 |
# File 'lib/rcs-common/evidence/device.rb', line 10 def generate_content [ content ] end |