Sha256: f201b16b68e34cffcec4fbf3e74f96a8da57a809630ab1c1c006a8de269a927c

Contents?: true

Size: 948 Bytes

Versions: 2

Compression:

Stored size: 948 Bytes

Contents

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

        # @return [URI,String]
        define_property :course_mode, as: "courseMode", types: [
          "URI",
          "string",
        ]

        # @return [OpenActive::Models::Schema::Person,URI]
        define_property :instructor, as: "instructor", types: [
          "OpenActive::Models::Schema::Person",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::Schedule,URI]
        define_property :course_schedule, as: "courseSchedule", types: [
          "OpenActive::Models::Schema::Schedule",
          "URI",
        ]

        # @return [String]
        define_property :course_workload, as: "courseWorkload", types: [
          "string",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/schema/course_instance.rb
openactive-0.4.0 lib/openactive/models/schema/course_instance.rb