Sha256: c13a84d3728148782100b91d5c50984854e073b6c58ad08ed79274c839d184fa
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
module Indieweb module PostTypes module Identifier module Rsvp extend Indieweb::PostTypes::Identifier::Base class << self private def identifier_from(data) return unless data.key?('rsvp') return unless valid_value?(Array(data['rsvp'])[0]) 'rsvp' end def valid_value?(value) %w[yes no maybe interested].include?(value.downcase) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems