Sha256: b29cfc1d7af3fc1fbdf40dbff7ab2fdff7edcf7966908dc9a0956c6addfe1668

Contents?: true

Size: 873 Bytes

Versions: 3

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 [DateTime,Date,nil]
        define_property :start_date, as: "startDate", types: [
          "DateTime",
          "Date",
          "null",
        ]

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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