Class: RedisCounters::Dumpers::Dsl::Destination::Configuration
- Defined in:
- lib/redis_counters/dumpers/dsl/destination.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
callback_setter, #initialize, setter, varags_setter
Constructor Details
This class inherits a constructor from RedisCounters::Dumpers::Dsl::Base
Instance Method Details
#condition(value) ⇒ Object
27 28 29 |
# File 'lib/redis_counters/dumpers/dsl/destination.rb', line 27 def condition(value) destination.conditions << value end |
#map(field, target_field) ⇒ Object
23 24 25 |
# File 'lib/redis_counters/dumpers/dsl/destination.rb', line 23 def map(field, target_field) destination.fields_map.merge!(field.to_sym => target_field[:to]) end |