Sha256: 6773a7bf970e2471baf132282dc9907f3b0a3f72524f9cd4f140b176b056eefb
Contents?: true
Size: 454 Bytes
Versions: 4
Compression:
Stored size: 454 Bytes
Contents
module Troo class ListPersistence include Persistence def initialize(resource, options = {}) @resource = resource @options = options end private attr_reader :resource, :options def created Troo::List.create(remote) end def local @local ||= Troo::List.first(external_list_id: resource.id) end def remote @remote ||= Troo::External::ListAdaptor.adapt(resource) end end end
Version data entries
4 entries across 4 versions & 1 rubygems