Class: GOBL::Org::Address
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::Address
- Defined in:
- lib/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'
Constants included from Hashme
Instance Attribute Summary collapse
-
#block ⇒ String
readonly
Block number within the building.
-
#code ⇒ String
readonly
Post or ZIP code.
-
#coords ⇒ GOBL::Org::Coordinates
readonly
When the postal address is not sufficient, coordinates help locate the address more precisely.
-
#country ⇒ GOBL::L10n::CountryCode
readonly
ISO country code.
-
#door ⇒ String
readonly
Door number within the building.
-
#floor ⇒ String
readonly
Floor number within the building.
-
#label ⇒ String
readonly
Useful identifier, such as home, work, etc.
-
#locality ⇒ String
readonly
Village, town, district, or city, typically inside a region.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Any additional semi-structure details about the address.
-
#num ⇒ String
readonly
House or building number in the street.
-
#po_box ⇒ String
readonly
Box number or code for the post office box located at the address.
-
#region ⇒ String
readonly
Province, county, or state, inside a country.
-
#street ⇒ String
readonly
First line of street.
-
#street_extra ⇒ String
readonly
Additional street address details.
-
#uuid ⇒ GOBL::UUID::UUID
readonly
Internal ID used to identify the party inside a document.
Method Summary
Methods inherited from GOBL::Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#block ⇒ String (readonly)
Block number within the building.
44 |
# File 'lib/gobl/org/address.rb', line 44 property :block, String |
#code ⇒ String (readonly)
Post or ZIP code.
75 |
# File 'lib/gobl/org/address.rb', line 75 property :code, String |
#coords ⇒ GOBL::Org::Coordinates (readonly)
When the postal address is not sufficient, coordinates help locate the address more precisely.
85 |
# File 'lib/gobl/org/address.rb', line 85 property :coords, GOBL::Org::Coordinates |
#country ⇒ GOBL::L10n::CountryCode (readonly)
ISO country code.
80 |
# File 'lib/gobl/org/address.rb', line 80 property :country, GOBL::L10n::CountryCode |
#door ⇒ String (readonly)
Door number within the building.
49 |
# File 'lib/gobl/org/address.rb', line 49 property :door, String |
#floor ⇒ String (readonly)
Floor number within the building.
39 |
# File 'lib/gobl/org/address.rb', line 39 property :floor, String |
#label ⇒ String (readonly)
Useful identifier, such as home, work, etc.
24 |
# File 'lib/gobl/org/address.rb', line 24 property :label, String |
#locality ⇒ String (readonly)
Village, town, district, or city, typically inside a region.
64 |
# File 'lib/gobl/org/address.rb', line 64 property :locality, String |
#meta ⇒ GOBL::CBC::Meta (readonly)
Any additional semi-structure details about the address.
90 |
# File 'lib/gobl/org/address.rb', line 90 property :meta, GOBL::CBC::Meta |
#num ⇒ String (readonly)
House or building number in the street.
34 |
# File 'lib/gobl/org/address.rb', line 34 property :num, String |
#po_box ⇒ String (readonly)
Box number or code for the post office box located at the address.
29 |
# File 'lib/gobl/org/address.rb', line 29 property :po_box, String |
#region ⇒ String (readonly)
Province, county, or state, inside a country.
70 |
# File 'lib/gobl/org/address.rb', line 70 property :region, String |
#street ⇒ String (readonly)
First line of street.
54 |
# File 'lib/gobl/org/address.rb', line 54 property :street, String |
#street_extra ⇒ String (readonly)
Additional street address details.
59 |
# File 'lib/gobl/org/address.rb', line 59 property :street_extra, String |
#uuid ⇒ GOBL::UUID::UUID (readonly)
Internal ID used to identify the party inside a document.
19 |
# File 'lib/gobl/org/address.rb', line 19 property :uuid, GOBL::UUID::UUID |