Sha256: 31e5aa075d1818e32b115194425225e22134668d7b37784bfe26e24424480398

Contents?: true

Size: 988 Bytes

Versions: 4

Compression:

Stored size: 988 Bytes

Contents

module OpenActive
  module Models
    # This type is derived from [OpeningHoursSpecification](https://schema.org/OpeningHoursSpecification), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.
    class OpeningHoursSpecification < ::OpenActive::Models::Schema::OpeningHoursSpecification
      # @!attribute type
      # @return [String]
      def type
        "OpeningHoursSpecification"
      end

      # @return [Time,nil]
      define_property :closes, as: "closes", types: [
        "Time",
        "null",
      ]

      # @return [OpenActive::Enums::Schema::DayOfWeek,nil]
      define_property :day_of_week, as: "dayOfWeek", types: [
        "OpenActive::Enums::Schema::DayOfWeek",
        "null",
      ]

      # @return [Time,nil]
      define_property :opens, as: "opens", types: [
        "Time",
        "null",
      ]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/opening_hours_specification.rb
openactive-0.1.1 lib/openactive/models/opening_hours_specification.rb
openactive-0.1.0 lib/openactive/models/opening_hours_specification.rb
openactive-0.1.0.rc1 lib/openactive/models/opening_hours_specification.rb