Sha256: b7fd29598547aaf3f30d3c93a926798aee19df0eb0dbb92178484e009e38728c

Contents?: true

Size: 946 Bytes

Versions: 4

Compression:

Stored size: 946 Bytes

Contents

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

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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