Module: PostalAddress::ClassMethods
- Included in:
- PostalAddress
- Defined in:
- lib/postal_address/class_methods.rb
Instance Attribute Summary collapse
-
#home_country ⇒ Object
Returns the value of attribute home_country.
Instance Method Summary collapse
Instance Attribute Details
#home_country ⇒ Object
Returns the value of attribute home_country.
5 6 7 |
# File 'lib/postal_address/class_methods.rb', line 5 def home_country @home_country end |
Instance Method Details
#attributes ⇒ Object
19 20 21 |
# File 'lib/postal_address/class_methods.rb', line 19 def attributes @attributes ||= {} end |
#country_names ⇒ Object
15 16 17 |
# File 'lib/postal_address/class_methods.rb', line 15 def country_names @country_names ||= YAML.load_file("data/country_names.yml") end |
#formats ⇒ Object
11 12 13 |
# File 'lib/postal_address/class_methods.rb', line 11 def formats @formats ||= YAML.load_file("data/address_formats.yml") end |