Sha256: 44d7086d9dcc44536b944a548514aa37030837744e0d29d4d359376547694338

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

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

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

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

        # @return [OpenActive::Models::Schema::Thing,String]
        define_property :default_value, as: "defaultValue", types: [
          "OpenActive::Models::Schema::Thing",
          "string",
        ]

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

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

        # @return [BigDecimal,nil]
        define_property :max_value, as: "maxValue", types: [
          "Number",
          "null",
        ]

        # @return [BigDecimal,nil]
        define_property :value_min_length, as: "valueMinLength", types: [
          "Number",
          "null",
        ]

        # @return [BigDecimal,nil]
        define_property :min_value, as: "minValue", types: [
          "Number",
          "null",
        ]

        # @return [BigDecimal,nil]
        define_property :value_max_length, as: "valueMaxLength", types: [
          "Number",
          "null",
        ]

        # @return [BigDecimal,nil]
        define_property :step_value, as: "stepValue", types: [
          "Number",
          "null",
        ]

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

Version data entries

4 entries across 4 versions & 1 rubygems

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