Class: Euston::AggregateEntry

Inherits:
Hash
  • Object
show all
Defined in:
lib/euston/aggregate_command_map.rb

Instance Method Summary collapse

Instance Method Details

#find_identifier_by_type(type) ⇒ Object



13
14
15
16
17
# File 'lib/euston/aggregate_command_map.rb', line 13

def find_identifier_by_type(type)
  mapping = self[:mappings].find_mapping_for_type(type)
  return mapping[:identifier] if mapping
  nil
end