Sha256: 0be8c35a965a7cb0ae31478c6b8eb8c6e7144501309509fcb09cac5d91216a7d
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
require 'status_querier/version' require 'status_querier/querier' module StatusQuerier SUPPORTED_STATUSES = %i(pending preview live expired invalid disabled).freeze ALL = :all WHITELIST = (SUPPORTED_STATUSES + [ALL]).freeze DEFAULT_LISTING = :default_listing module Error class InvalidStatus < ArgumentError; end end def self.allow?(status) WHITELIST.include?(status) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
status_querier-1.2.4 | lib/status_querier.rb |
status_querier-1.2.3 | lib/status_querier.rb |