Sha256: 8070eecc907c9469a22d2a67110774a44c6d9d5fccb552b1ac9a63613db4b45f

Contents?: true

Size: 1.38 KB

Versions: 4

Compression:

Stored size: 1.38 KB

Contents

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

        # @return [String,ActiveSupport::Duration,nil]
        define_property :repeat_frequency, as: "repeatFrequency", types: [
          "string",
          "DateInterval",
          "null",
        ]

        # @return [Date,DateTime,nil]
        define_property :except_date, as: "exceptDate", types: [
          "Date",
          "DateTime",
          "null",
        ]

        # @return [int,nil]
        define_property :by_month_day, as: "byMonthDay", types: [
          "int",
          "null",
        ]

        # @return [int,nil]
        define_property :by_month, as: "byMonth", types: [
          "int",
          "null",
        ]

        # @return [int,nil]
        define_property :repeat_count, as: "repeatCount", types: [
          "int",
          "null",
        ]

        # @return [ActiveSupport::Duration,nil]
        define_property :event_schedule, as: "eventSchedule", types: [
          "DateInterval",
          "null",
        ]

        # @return [OpenActive::Enums::Schema::DayOfWeek,nil]
        define_property :by_day, as: "byDay", types: [
          "OpenActive::Enums::Schema::DayOfWeek",
          "null",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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