Class: Detectors::Detector
- Inherits:
-
Object
- Object
- Detectors::Detector
- Defined in:
- lib/persistence_detector/detectors.rb
Overview
Detector is the parent class from which detector subclasses inherit
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platforms ⇒ Object
Returns the value of attribute platforms.
-
#references ⇒ Object
Returns the value of attribute references.
-
#ttp_id ⇒ Object
Returns the value of attribute ttp_id.
Instance Method Summary collapse
- #detect_persistence ⇒ Object
- #display_metadata ⇒ Object
-
#initialize ⇒ Detector
constructor
A new instance of Detector.
Constructor Details
#initialize ⇒ Detector
Returns a new instance of Detector.
16 |
# File 'lib/persistence_detector/detectors.rb', line 16 def initialize; end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/persistence_detector/detectors.rb', line 14 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/persistence_detector/detectors.rb', line 14 def name @name end |
#platforms ⇒ Object
Returns the value of attribute platforms.
14 15 16 |
# File 'lib/persistence_detector/detectors.rb', line 14 def platforms @platforms end |
#references ⇒ Object
Returns the value of attribute references.
14 15 16 |
# File 'lib/persistence_detector/detectors.rb', line 14 def references @references end |
#ttp_id ⇒ Object
Returns the value of attribute ttp_id.
14 15 16 |
# File 'lib/persistence_detector/detectors.rb', line 14 def ttp_id @ttp_id end |
Instance Method Details
#detect_persistence ⇒ Object
18 19 20 21 |
# File 'lib/persistence_detector/detectors.rb', line 18 def detect_persistence # override me raise('not implemented') end |
#display_metadata ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/persistence_detector/detectors.rb', line 23 def puts "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- TTP ID: #{@ttp_id}\n Name: #{@name}\n Description: #{@description}\n Platforms: #{@platforms}\n References: #{@references}\n\n" end |