Sha256: acc2c78b3dd42c1a0baa18edc92eaf7c6dc2ba6fe5106dd21c53cf6ba2bbd209

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

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

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

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

        # @return [String,BigDecimal,nil]
        define_property :worst_rating, as: "worstRating", types: [
          "string",
          "Number",
          "null",
        ]

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

        # @return [String,BigDecimal,nil]
        define_property :best_rating, as: "bestRating", types: [
          "string",
          "Number",
          "null",
        ]

        # @return [String,BigDecimal,nil]
        define_property :rating_value, as: "ratingValue", types: [
          "string",
          "Number",
          "null",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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