Sha256: 69ccece95e98d6c4ca4f02d92af7cbe311df3ee1e62fea49d388bf47c2182099

Contents?: true

Size: 873 Bytes

Versions: 4

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 [URI,String]
        define_property :role_name, as: "roleName", types: [
          "URI",
          "string",
        ]

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

        # @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",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/role.rb
openactive-0.1.1 lib/openactive/models/schema/role.rb
openactive-0.1.0 lib/openactive/models/schema/role.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/role.rb