Sha256: 65a5b6dc4f743b2fdfa32f82cc9aa3472fe155a45d245497300df11baa849024

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

module Troo
  module Persistence
    class Member < Resource
      private

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

      def local
        @local ||= Troo::Member.first(external_member_id: resource.id)
      end

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