Module: PostalAddress::ClassMethods

Included in:
PostalAddress
Defined in:
lib/postal_address/class_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#home_countryObject

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

#attributesObject



19
20
21
# File 'lib/postal_address/class_methods.rb', line 19

def attributes
  @attributes ||= {}
end

#country_namesObject



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

#formatsObject



11
12
13
# File 'lib/postal_address/class_methods.rb', line 11

def formats
  @formats ||= YAML.load_file("data/address_formats.yml")
end