Class: GOBL::Org::Address

Inherits:
GOBL::Object show all
Defined in:
lib/generated/gobl/org/address.rb

Overview

Address defines a globally acceptable set of attributes that describes a postal or fiscal address.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Address structure

'https://gobl.org/draft-0/org/address'

Instance Attribute Summary collapse

Method Summary

Methods inherited from GOBL::Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#blockString (readonly)

Block number within the building.

Returns:

  • (String)


43
# File 'lib/generated/gobl/org/address.rb', line 43

property :block, String

#codeString (readonly)

Post or ZIP code.

Returns:

  • (String)


73
# File 'lib/generated/gobl/org/address.rb', line 73

property :code, String

#coordsGOBL::Org::Coordinates (readonly)

When the postal address is not sufficient, coordinates help locate the address more precisely.



83
# File 'lib/generated/gobl/org/address.rb', line 83

property :coords, GOBL::Org::Coordinates

#countryGOBL::L10n::ISOCountryCode (readonly)

ISO country code.



78
# File 'lib/generated/gobl/org/address.rb', line 78

property :country, GOBL::L10n::ISOCountryCode

#doorString (readonly)

Door number within the building.

Returns:

  • (String)


48
# File 'lib/generated/gobl/org/address.rb', line 48

property :door, String

#floorString (readonly)

Floor number within the building.

Returns:

  • (String)


38
# File 'lib/generated/gobl/org/address.rb', line 38

property :floor, String

#labelString (readonly)

Useful identifier, such as home, work, etc.

Returns:

  • (String)


23
# File 'lib/generated/gobl/org/address.rb', line 23

property :label, String

#localityString (readonly)

Village, town, district, or city, typically inside a region.

Returns:

  • (String)


63
# File 'lib/generated/gobl/org/address.rb', line 63

property :locality, String

#metaGOBL::CBC::Meta (readonly)

Any additional semi-structure details about the address.

Returns:



88
# File 'lib/generated/gobl/org/address.rb', line 88

property :meta, GOBL::CBC::Meta

#numString (readonly)

House or building number in the street.

Returns:

  • (String)


33
# File 'lib/generated/gobl/org/address.rb', line 33

property :num, String

#po_boxString (readonly)

Box number or code for the post office box located at the address.

Returns:

  • (String)


28
# File 'lib/generated/gobl/org/address.rb', line 28

property :po_box, String

#regionString (readonly)

Province, county, or state, inside a country.

Returns:

  • (String)


68
# File 'lib/generated/gobl/org/address.rb', line 68

property :region, String

#streetString (readonly)

First line of street.

Returns:

  • (String)


53
# File 'lib/generated/gobl/org/address.rb', line 53

property :street, String

#street_extraString (readonly)

Additional street address details.

Returns:

  • (String)


58
# File 'lib/generated/gobl/org/address.rb', line 58

property :street_extra, String

#uuidString (readonly)

Universally Unique Identifier.

Returns:

  • (String)


18
# File 'lib/generated/gobl/org/address.rb', line 18

property :uuid, String