Sha256: 46844a991756ca1d19660c219c4f3ee414cf5ac87ba13f7eb6aba2e30a7702ef

Contents?: true

Size: 1.82 KB

Versions: 3

Compression:

Stored size: 1.82 KB

Contents

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

        # @return [String,OpenActive::Models::Schema::AlignmentObject,OpenActive::Models::Schema::Course,URI]
        define_property :course_prerequisites, as: "coursePrerequisites", types: [
          "string",
          "OpenActive::Models::Schema::AlignmentObject",
          "OpenActive::Models::Schema::Course",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::CourseInstance,URI]
        define_property :has_course_instance, as: "hasCourseInstance", types: [
          "OpenActive::Models::Schema::CourseInstance",
          "URI",
        ]

        # @return [String]
        define_property :course_code, as: "courseCode", types: [
          "string",
        ]

        # @return [URI,String,OpenActive::Models::Schema::EducationalOccupationalCredential]
        define_property :occupational_credential_awarded, as: "occupationalCredentialAwarded", types: [
          "URI",
          "string",
          "OpenActive::Models::Schema::EducationalOccupationalCredential",
        ]

        # @return [OpenActive::Models::Schema::StructuredValue,int,URI,nil]
        define_property :number_of_credits, as: "numberOfCredits", types: [
          "OpenActive::Models::Schema::StructuredValue",
          "int",
          "URI",
          "null",
        ]

        # @return [URI,String,OpenActive::Models::Schema::EducationalOccupationalCredential]
        define_property :educational_credential_awarded, as: "educationalCredentialAwarded", types: [
          "URI",
          "string",
          "OpenActive::Models::Schema::EducationalOccupationalCredential",
        ]
      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.rb
openactive-0.2.1 lib/openactive/models/schema/course.rb
openactive-0.2.0 lib/openactive/models/schema/course.rb