Class: Mincer::Processors::CacheDigest::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/mincer/processors/cache_digest/processor.rb

Instance Method Summary collapse

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

#applyObject



10
11
12
# File 'lib/mincer/processors/cache_digest/processor.rb', line 10

def apply
  @relation
end

#digestObject



14
15
16
# File 'lib/mincer/processors/cache_digest/processor.rb', line 14

def digest
  Mincer.connection.execute(digest_sql).first.values.first
end