Sha256: 890884074309ecf43a9ee4c45394594b8d354f57cbe73fe4e64f9a75aa86750e

Contents?: true

Size: 996 Bytes

Versions: 3

Compression:

Stored size: 996 Bytes

Contents

require 'typesafe_enum'

module OpenActive
  module Enums
    module Schema
      # The day of the week, e.g. used to specify to which day the opening hours of an OpeningHoursSpecification refer.
      #
      # Originally, URLs from [GoodRelations](http://purl.org/goodrelations/v1) were used (for [[Monday]], [[Tuesday]], [[Wednesday]], [[Thursday]], [[Friday]], [[Saturday]], [[Sunday]] plus a special entry for [[PublicHolidays]]); these have now been integrated directly into schema.org.
      #
      class DayOfWeek < TypesafeEnum::Base
        new :PublicHolidays, "https://schema.org/PublicHolidays"
        new :Sunday, "https://schema.org/Sunday"
        new :Monday, "https://schema.org/Monday"
        new :Thursday, "https://schema.org/Thursday"
        new :Wednesday, "https://schema.org/Wednesday"
        new :Tuesday, "https://schema.org/Tuesday"
        new :Saturday, "https://schema.org/Saturday"
        new :Friday, "https://schema.org/Friday"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/enums/schema/day_of_week.rb
openactive-0.2.1 lib/openactive/enums/schema/day_of_week.rb
openactive-0.2.0 lib/openactive/enums/schema/day_of_week.rb