Class: DeltaAttack::Extractor::Base
- Inherits:
-
Object
- Object
- DeltaAttack::Extractor::Base
- Defined in:
- lib/delta_attack/extractor/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
Instance Method Summary collapse
- #data(ignore_cache = false) ⇒ Object
-
#initialize(bytes) ⇒ Base
constructor
A new instance of Base.
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
#bytes ⇒ Object
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 |