lib/alephant/lookup/lookup.rb in alephant-lookup-0.0.1 vs lib/alephant/lookup/lookup.rb in alephant-lookup-0.0.2

- old
+ new

@@ -4,19 +4,24 @@ attr_reader :component_id def initialize(lookup_table, component_id) @lookup_table = lookup_table @component_id = component_id - - @lookup_table.create + create_lookup_table end def read(opts) - fail + @lookup_table.location_for(@component_id, opts) end def write(opts, location) - fail + @lookup_table.write_location_for(@component_id, opts, location) + end + + private + + def create_lookup_table + @lookup_table.create end end end end