Sha256: fe9899d92e799bb5385e698a9cb48fa50d8a1ea79bf933ce845fa645b5243bfa

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

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

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

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

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

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.2.2 lib/openactive/models/schema/postal_address.rb
openactive-0.2.1 lib/openactive/models/schema/postal_address.rb
openactive-0.2.0 lib/openactive/models/schema/postal_address.rb