Class: RedisCounters::Dumpers::Dsl::Destination::Configuration
- Inherits:
-
Base
- Object
- Base
- RedisCounters::Dumpers::Dsl::Destination::Configuration
show all
- Defined in:
- lib/redis_counters/dumpers/dsl/destination.rb
Instance Attribute Summary
Attributes inherited from Base
#target
Instance Method Summary
collapse
Methods inherited from Base
callback_setter, #initialize, setter, varags_setter
Instance Method Details
#condition(value) ⇒ Object
29
30
31
|
# File 'lib/redis_counters/dumpers/dsl/destination.rb', line 29
def condition(value)
destination.conditions << value
end
|
#map(field, target_field) ⇒ Object
25
26
27
|
# File 'lib/redis_counters/dumpers/dsl/destination.rb', line 25
def map(field, target_field)
destination.fields_map.merge!(field.to_sym => target_field[:to])
end
|
#source_condition(value) ⇒ Object
33
34
35
|
# File 'lib/redis_counters/dumpers/dsl/destination.rb', line 33
def source_condition(value)
destination.source_conditions << value
end
|