Sha256: 70f5b8ec4e6870b9b720e52416c1b90c471c4c037eb9496d592440d0b2bc1f34

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

require 'indieweb/post_types/identifier/base'
require 'indieweb/post_types/identifier/bookmark/version'

module Indieweb
  module PostTypes
    module Identifier
      module Bookmark
        extend Indieweb::PostTypes::Identifier::Base

        class << self
          private

          def identifier_from(data)
            return unless data.key?('bookmark-of')

            'bookmark'
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
indieweb-post_types-identifier-bookmark-1.1.1 lib/indieweb/post_types/identifier/bookmark.rb
indieweb-post_types-identifier-bookmark-1.1.0 lib/indieweb/post_types/identifier/bookmark.rb
indieweb-post_types-identifier-bookmark-1.0.0 lib/indieweb/post_types/identifier/bookmark.rb