Class: DeltaAttack::Extractor::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/delta_attack/extractor/base.rb

Direct Known Subclasses

Excel, PowerPoint, Word

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bytes) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/delta_attack/extractor/base.rb', line 7

def initialize(bytes)
  @bytes = bytes
end

Instance Attribute Details

#bytesObject

Returns the value of attribute bytes.



6
7
8
# File 'lib/delta_attack/extractor/base.rb', line 6

def bytes
  @bytes
end

Instance Method Details

#data(ignore_cache = false) ⇒ Object



11
12
13
14
15
# File 'lib/delta_attack/extractor/base.rb', line 11

def data(ignore_cache=false)
  return @data if (!ignore_cache) && @data

  @data = extract_data
end