Sha256: 200710e07684af52e82938c3358d3f25c8fb1315f7992bd7ec8ab076bf3b8d61
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
module Alephant module Lookup class Lookup attr_reader :component_id def initialize(lookup_table, component_id) @lookup_table = lookup_table @component_id = component_id create_lookup_table end def read(opts) @lookup_table.location_for(@component_id, opts) end def write(opts, location) @lookup_table.write_location_for(@component_id, opts, location) end private def create_lookup_table @lookup_table.create end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alephant-lookup-0.0.3 | lib/alephant/lookup/lookup.rb |
alephant-lookup-0.0.2 | lib/alephant/lookup/lookup.rb |