Module: DataMapper::Address

Defined in:
lib/dm-address.rb,
lib/dm-address/us.rb,
lib/dm-address/version.rb,
lib/dm-address/zip_code.rb,
lib/dm-address/preferred.rb,
lib/dm-address/polymorphic.rb,
lib/dm-address/phone_number.rb

Defined Under Namespace

Modules: Polymorphic, Preferred, US Classes: PhoneNumber, ZipCode

Constant Summary collapse

DEFAULTS =
{
  :phone_format => PhoneNumber::DEFAULT_FORMAT.dup,
  :include_country => false,
  :include_phone => false,
  :us_required_fields => US::DEFAULT_REQUIRED_FIELDS.dup
}
VERSION =
'0.5.0'.freeze

Class Method Summary collapse

Class Method Details

.configObject

Address::config method returns Hash that can be edited.



22
23
24
# File 'lib/dm-address.rb', line 22

def config
  @config ||= DEFAULTS.dup
end