Sha256: 70d469f2c57c3857b9ac66f53bb7533106508ea85944e66955d870702ede6c2b

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 KB

Contents

module OpenActive
  module Models
    # This type is derived from [PostalAddress](https://schema.org/PostalAddress), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.
    class PostalAddress < ::OpenActive::Models::Schema::PostalAddress
      # @!attribute type
      # @return [String]
      def type
        "PostalAddress"
      end

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

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

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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