Sha256: 01d2280dd9a48c25b20756d750da230999faf8cdfa37cd159fcb1d1d4830f2b8

Contents?: true

Size: 1.52 KB

Versions: 2

Compression:

Stored size: 1.52 KB

Contents

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

        # @return [int,nil]
        define_property :word_count, as: "wordCount", types: [
          "int",
          "null",
        ]

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

        # @return [String]
        define_property :article_section, as: "articleSection", types: [
          "string",
        ]

        # @return [String]
        define_property :article_body, as: "articleBody", types: [
          "string",
        ]

        # @return [String,OpenActive::Models::Schema::CreativeWork,URI]
        define_property :backstory, as: "backstory", types: [
          "string",
          "OpenActive::Models::Schema::CreativeWork",
          "URI",
        ]

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

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

        # @return [OpenActive::Models::Schema::SpeakableSpecification,URI]
        define_property :speakable, as: "speakable", types: [
          "OpenActive::Models::Schema::SpeakableSpecification",
          "URI",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/schema/article.rb
openactive-0.4.0 lib/openactive/models/schema/article.rb