Sha256: 8e9f9e597f165ae5e711ad67b7cd09b57da23647a7e9537b8c1902b26052e9f8

Contents?: true

Size: 873 Bytes

Versions: 2

Compression:

Stored size: 873 Bytes

Contents

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

        # @return [String,URI]
        define_property :named_position, as: "namedPosition", types: [
          "string",
          "URI",
        ]

        # @return [Date,DateTime,nil]
        define_property :start_date, as: "startDate", types: [
          "Date",
          "DateTime",
          "null",
        ]

        # @return [String,URI]
        define_property :role_name, as: "roleName", types: [
          "string",
          "URI",
        ]

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

Version data entries

2 entries across 2 versions & 1 rubygems

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