Sha256: 2b9f8505f643d1efc591d40a1f23688bf6e12f3ba672221e38aa3788146234f8

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

module Troo
  module Persistence
    class List < Resource
      private

      def created
        Troo::List.create(remote_data)
      end

      def local
        @local ||= Troo::List.first(external_list_id: resource.id)
      end

      def remote_data
        @remote ||= Adaptors::List.adapt(resource)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 lib/troo/models/persistence/list.rb