Sha256: 2e090832f246896d46642c72bd6eef4d2f2b6afc009b466f73042ce93652b817

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

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

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

        # @return [ActiveSupport::Duration,URI,nil]
        define_property :duration, as: "duration", types: [
          "DateInterval",
          "URI",
          "null",
        ]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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