Sha256: 0b78c6ab08957096fd84a0b9c53875e9e0d90f7c55d0d4e86c2e69c3a5559ade

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 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 [String]
        define_property :book_edition, as: "bookEdition", types: [
          "string",
        ]

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

        # @return [Boolean,nil]
        define_property :abridged, as: "abridged", types: [
          "bool",
          "null",
        ]

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/models/schema/book.rb
openactive-0.2.1 lib/openactive/models/schema/book.rb
openactive-0.2.0 lib/openactive/models/schema/book.rb