Sha256: fecb51fc678dbca525e57b6b63d3acda2e21524a6ca14a4338eeb4038fb00da8

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

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

        # @return [OpenActive::Models::Schema::Country,String,URI]
        define_property :address_country, as: "addressCountry", types: [
          "OpenActive::Models::Schema::Country",
          "string",
          "URI",
        ]

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

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

        # @return [OpenActive::Models::Schema::PostalCodeRangeSpecification,URI]
        define_property :postal_code_range, as: "postalCodeRange", types: [
          "OpenActive::Models::Schema::PostalCodeRangeSpecification",
          "URI",
        ]

        # @return [String]
        define_property :address_region, as: "addressRegion", types: [
          "string",
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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