Sha256: 5f75d05f6ed1ac5ebc7a4fa720c04e3bc5256b2019d312d9eb1c13846e4bded3

Contents?: true

Size: 1.08 KB

Versions: 3

Compression:

Stored size: 1.08 KB

Contents

module OpenActive
  module Models
    module Schema
      class OpeningHoursSpecification < ::OpenActive::Models::Schema::StructuredValue
        # @!attribute type
        # @return [String]
        def type
          "schema:OpeningHoursSpecification"
        end

        # @return [DateTime,Date,nil]
        define_property :valid_from, as: "validFrom", types: [
          "DateTime",
          "Date",
          "null",
        ]

        # @return [Time,nil]
        define_property :opens, as: "opens", 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 :closes, as: "closes", types: [
          "Time",
          "null",
        ]

        # @return [DateTime,Date,nil]
        define_property :valid_through, as: "validThrough", types: [
          "DateTime",
          "Date",
          "null",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/models/schema/opening_hours_specification.rb
openactive-0.2.1 lib/openactive/models/schema/opening_hours_specification.rb
openactive-0.2.0 lib/openactive/models/schema/opening_hours_specification.rb