Class: Apullo::Fingerprint::Base
- Inherits:
-
Object
- Object
- Apullo::Fingerprint::Base
- Defined in:
- lib/apullo/fingerprints/base.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target) ⇒ Base
constructor
A new instance of Base.
- #name ⇒ Object
- #results ⇒ Object
Constructor Details
#initialize(target) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/apullo/fingerprints/base.rb', line 8 def initialize(target) @target = target @results = nil end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
6 7 8 |
# File 'lib/apullo/fingerprints/base.rb', line 6 def target @target end |
Class Method Details
.inherited(child) ⇒ Object
39 40 41 |
# File 'lib/apullo/fingerprints/base.rb', line 39 def inherited(child) Apullo.fingerprints << child end |
Instance Method Details
#name ⇒ Object
13 14 15 |
# File 'lib/apullo/fingerprints/base.rb', line 13 def name self.class.to_s.split("::").last.to_s.downcase end |
#results ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/apullo/fingerprints/base.rb', line 17 def results return @results if @results with_error_handling do @results ||= build_results end @results end |