class Storing::Updater

Attributes

entity[R]
mapper[R]
store[R]

Public Class Methods

new(entity, mapper, store) click to toggle source
# File lib/storing/updater.rb, line 12
def initialize entity, mapper, store
        @entity = entity
        @mapper = mapper
        @store = store
end
update(entity, mapper, store) click to toggle source
# File lib/storing/updater.rb, line 6
def self.update entity, mapper, store
        new(entity, mapper, store).update
end

Public Instance Methods

update() click to toggle source
# File lib/storing/updater.rb, line 18
def update
        store.update(data)
end

Private Instance Methods

data() click to toggle source
# File lib/storing/updater.rb, line 24
def data
        mapper.dump_to_table(entity, table_name)
end
table_name() click to toggle source
# File lib/storing/updater.rb, line 28
def table_name
        store.table_name
end