Class: Euston::AggregateMap
- Inherits:
-
Array
- Object
- Array
- Euston::AggregateMap
- Defined in:
- lib/euston/aggregate_command_map.rb
Instance Method Summary collapse
Instance Method Details
#find_entry_by_type(type) ⇒ Object
3 4 5 |
# File 'lib/euston/aggregate_command_map.rb', line 3 def find_entry_by_type(type) find { |a| a[:type] == type } end |
#find_entry_with_mapping_match(spec) ⇒ Object
7 8 9 |
# File 'lib/euston/aggregate_command_map.rb', line 7 def find_entry_with_mapping_match(spec) find { |m| m[:mappings].any_mapping_matching?(spec) } end |