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 |
# File 'lib/apullo/fingerprints/base.rb', line 8 def initialize(target) @target = target 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
21 22 23 |
# File 'lib/apullo/fingerprints/base.rb', line 21 def inherited(child) Apullo.fingerprints << child end |
Instance Method Details
#name ⇒ Object
12 13 14 |
# File 'lib/apullo/fingerprints/base.rb', line 12 def name self.class.to_s.split("::").last.to_s.downcase end |
#results ⇒ Object
16 17 18 |
# File 'lib/apullo/fingerprints/base.rb', line 16 def results raise NotImplementedError, "You must implement #{self.class}##{__method__}" end |