Sha256: 1a80b1b0e41bf0b1db6f5f76e64781d25ae93c1657d09ed9dee214551e94bee9
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
module Troo class BoardPersistence include Persistence def initialize(resource, options = {}) @resource = resource @options = options end private attr_reader :resource, :options def created Troo::Board.create(remote) end def local @local ||= Troo::Board.first(external_board_id: resource.id) end def remote @remote ||= Troo::External::BoardAdaptor.adapt(resource) end end end
Version data entries
4 entries across 4 versions & 1 rubygems