Sha256: 06c32a10e643e27ef5723cb01b254a5de415e7d5efba4912c7ca1a7feddeac32

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module Troo
  module Persistence
    class Comment < Resource
      private

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

      def local
        @local ||= Troo::Comment.first(external_comment_id: resource.id)
      end

      def remote_data
        @remote ||= Adaptors::Comment.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/comment.rb