Sha256: af096ddcb05fe8082932b2386b41aecd322f206a17098c50c581523e95ead40e

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

module Indieweb
  module PostTypes
    module Identifier
      module Reply
        extend Indieweb::PostTypes::Identifier::Base

        class << self
          private

          def identifier_from(data)
            return unless data.key?('in-reply-to')
            return unless valid_url?(data['in-reply-to'])

            'reply'
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
indieweb-post_types-0.3.2 lib/indieweb/post_types/identifier/reply.rb
indieweb-post_types-0.3.1 lib/indieweb/post_types/identifier/reply.rb
indieweb-post_types-0.3.0 lib/indieweb/post_types/identifier/reply.rb
indieweb-post_types-0.2.0 lib/indieweb/post_types/identifier/reply.rb
indieweb-post_types-0.1.0 lib/indieweb/post_types/identifier/reply.rb