Sha256: 7e803b0d92df9245cced108709e8f6fcf5edd92efcf1e6e7635d0a077d17df8e

Contents?: true

Size: 1009 Bytes

Versions: 3

Compression:

Stored size: 1009 Bytes

Contents

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

        # @return [int,String,nil]
        define_property :position, as: "position", types: [
          "int",
          "string",
          "null",
        ]

        # @return [OpenActive::Models::Schema::ListItem,URI]
        define_property :next_item, as: "nextItem", types: [
          "OpenActive::Models::Schema::ListItem",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::Thing,URI]
        define_property :item, as: "item", types: [
          "OpenActive::Models::Schema::Thing",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::ListItem,URI]
        define_property :previous_item, as: "previousItem", types: [
          "OpenActive::Models::Schema::ListItem",
          "URI",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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