Sha256: 20a2a76f6141dd0235700439ab7e093bd24d3e37b8575efb9d3d2f74c610b18f

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

require 'mida_vocabulary/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

4 entries across 4 versions & 1 rubygems

Version Path
mida_vocabulary-0.1.3 lib/mida_vocabulary/vocabularies/schemaorg/itemavailability.rb
mida_vocabulary-0.1.2 lib/mida_vocabulary/vocabularies/schemaorg/itemavailability.rb
mida_vocabulary-0.1.1 lib/mida_vocabulary/vocabularies/schemaorg/itemavailability.rb
mida_vocabulary-0.1 lib/mida_vocabulary/vocabularies/schemaorg/itemavailability.rb