Sha256: a50f3b4689e2c9be7af6acfe227d74de7b2646fe3772ef3ee120ff376830ef7a

Contents?: true

Size: 623 Bytes

Versions: 6

Compression:

Stored size: 623 Bytes

Contents

require 'mida/datatype'

module Mida
  module SchemaOrg

    # A list of possible product availablity options.
    class ItemAvailability < Mida::DataType::Enumeration
      VALID_VALUES = [
        [::Mida::DataType::URL, %r{http://schema.org/Discontinued}i],
        [::Mida::DataType::URL, %r{http://schema.org/InStock}i],
        [::Mida::DataType::URL, %r{http://schema.org/InStoreOnly}i],
        [::Mida::DataType::URL, %r{http://schema.org/OnlineOnly}i],
        [::Mida::DataType::URL, %r{http://schema.org/OutOfStock}i],
        [::Mida::DataType::URL, %r{http://schema.org/PreOrder}i]
      ]
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mida-0.4.0 lib/mida/vocabularies/schemaorg/itemavailability.rb
mida-0.3.9 lib/mida/vocabularies/schemaorg/itemavailability.rb
mida-0.3.8 lib/mida/vocabularies/schemaorg/itemavailability.rb
mida-0.3.7 lib/mida/vocabularies/schemaorg/itemavailability.rb
mida-0.3.6 lib/mida/vocabularies/schemaorg/itemavailability.rb
mida-0.3.3 lib/mida/vocabularies/schemaorg/itemavailability.rb