Sha256: 2f8bab75c31d8db9db0007723b4bb5dbdb7fedd706145305ace784b11422a2c7

Contents?: true

Size: 634 Bytes

Versions: 3

Compression:

Stored size: 634 Bytes

Contents

module OpenActive
  module Models
    module Schema
      class Audiobook < ::OpenActive::Models::Schema::AudioObject
        # @!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.5.0 lib/openactive/models/schema/audiobook.rb
openactive-0.4.0 lib/openactive/models/schema/audiobook.rb
openactive-0.3.0 lib/openactive/models/schema/audiobook.rb