Module: Postal
- Defined in:
- lib/postal_address.rb,
lib/postal_address/address.rb,
lib/postal_address/version.rb,
lib/postal_address/formatters/html.rb,
lib/postal_address/formatters/text.rb
Defined Under Namespace
Modules: AddressFormatter
Classes: Address
Constant Summary
collapse
- VERSION =
"0.9.2"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.home_country ⇒ Object
Returns the value of attribute home_country.
9
10
11
|
# File 'lib/postal_address.rb', line 9
def home_country
@home_country
end
|
Class Method Details
19
20
21
|
# File 'lib/postal_address.rb', line 19
def address_formats
@address_formats ||= load_yaml('address_formats')
end
|
.country_names ⇒ Object
23
24
25
|
# File 'lib/postal_address.rb', line 23
def country_names
@country_names ||= load_yaml('country_names')
end
|
.sanitize(code) ⇒ Object
15
16
17
|
# File 'lib/postal_address.rb', line 15
def sanitize(code)
code && code.to_s.downcase
end
|