Sha256: ac7470f32deb0e4ddd8dfc484b54c882a0a82c9f585d8e12d681512c040db92d

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

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

        # @return [int,nil]
        define_property :number_of_pages, as: "numberOfPages", types: [
          "int",
          "null",
        ]

        # @return [OpenActive::Models::Schema::Person]
        define_property :illustrator, as: "illustrator", types: [
          "OpenActive::Models::Schema::Person",
        ]

        # @return [OpenActive::Enums::Schema::BookFormatType,nil]
        define_property :book_format, as: "bookFormat", types: [
          "OpenActive::Enums::Schema::BookFormatType",
          "null",
        ]

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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