lib/troo/persistence/local.rb in troo-0.0.10 vs lib/troo/persistence/local.rb in troo-0.0.11

- old
+ new

@@ -1,27 +1,35 @@ module Troo module Persistence class Local class << self + # @param [Array] + # @return [Array] def with_collection(resources = []) resources.map do |resource| new(resource).preprocess end end + # @param [] + # @return [] def persist(resource) new(resource).persist end end + # @param [] + # @return [Troo::Persistence::Local] def initialize(resource) @resource = resource end + # @return [] def preprocess resource.preprocess end + # @return [] def persist set_default delete create end