Class: VitalsImage::Analyzer
- Inherits:
-
Object
- Object
- VitalsImage::Analyzer
- Defined in:
- lib/vitals_image/analyzer.rb
Overview
This is an abstract base class for dimension calculators
Direct Known Subclasses
Defined Under Namespace
Classes: UrlAnalyzer
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Class Method Summary collapse
-
.accept?(source) ⇒ Boolean
Implement this method in a concrete subclass.
Instance Method Summary collapse
-
#initialize(source) ⇒ Analyzer
constructor
A new instance of Analyzer.
- #logger ⇒ Object
Constructor Details
#initialize(source) ⇒ Analyzer
Returns a new instance of Analyzer.
14 15 16 |
# File 'lib/vitals_image/analyzer.rb', line 14 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/vitals_image/analyzer.rb', line 6 def source @source end |
Class Method Details
.accept?(source) ⇒ Boolean
Implement this method in a concrete subclass. Have it return true when given a source from which it can calculate dimensions
10 11 12 |
# File 'lib/vitals_image/analyzer.rb', line 10 def self.accept?(source) false end |
Instance Method Details
#logger ⇒ Object
18 19 20 |
# File 'lib/vitals_image/analyzer.rb', line 18 def logger VitalsImage.logger end |