Sha256: e4a771ea0674b4441a618419dcf59206a2d234322766fda3abc8a14c464e5111

Contents?: true

Size: 736 Bytes

Versions: 3

Compression:

Stored size: 736 Bytes

Contents

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

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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