Sha256: 49bbf9b8f840fd73e54189e991fda2244a46070bfe6f6fbc4b8f85576cc93101

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 KB

Contents

module OpenActive
  module Models
    #
    # ## **EARLY RELEASE NOTICE**
    # In order to expedite the OpenActive tooling work, this class has been added to the model for the purposes of testing.
    # IT IS SUBJECT TO CHANGE, as the [Dataset API Discovery specification](https://www.openactive.io/dataset-api-discovery/EditorsDraft/) evolves.
    #
    # This type is derived from [WebAPI](https://pending.schema.org/WebAPI), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.
    class WebAPI < ::OpenActive::JsonLdModel
      # @!attribute type
      # @return [String]
      def type
        "WebAPI"
      end

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

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

      # @return [Array<URI>]
      define_property :conforms_to, as: "conformsTo", types: [
        "URI[]",
      ]

      # @return [URI]
      define_property :documentation, as: "documentation", types: [
        "URI",
      ]

      # @return [URI]
      define_property :endpoint_description, as: "endpointDescription", types: [
        "URI",
      ]

      # @return [URI]
      define_property :endpoint_url, as: "endpointURL", types: [
        "URI",
      ]

      # @return [URI]
      define_property :landing_page, as: "landingPage", types: [
        "URI",
      ]

      # @return [URI]
      define_property :terms_of_service, as: "termsOfService", types: [
        "URI",
      ]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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