Class: Mincer::Processors::CacheDigest::Processor
- Inherits:
-
Object
- Object
- Mincer::Processors::CacheDigest::Processor
- Defined in:
- lib/mincer/processors/cache_digest/processor.rb
Instance Method Summary collapse
- #apply ⇒ Object
- #digest ⇒ Object
-
#initialize(mincer) ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize(mincer) ⇒ Processor
Returns a new instance of Processor.
6 7 8 |
# File 'lib/mincer/processors/cache_digest/processor.rb', line 6 def initialize(mincer) @mincer, @args, @relation = mincer, mincer.args, mincer.relation end |
Instance Method Details
#apply ⇒ Object
10 11 12 |
# File 'lib/mincer/processors/cache_digest/processor.rb', line 10 def apply @relation end |
#digest ⇒ Object
14 15 16 |
# File 'lib/mincer/processors/cache_digest/processor.rb', line 14 def digest Mincer.connection.execute(digest_sql).first.values.first end |