README.rdoc in ssn-0.2.0 vs README.rdoc in ssn-0.3.0
- old
+ new
@@ -9,10 +9,11 @@
== FEATURES
* Store a SSN unformatted in a database field with auto formatting when using.
+* SocialSecurityNumber class to use for formatting SSNs.
== REQUIREMENTS
* active_record >= 2.3
@@ -45,10 +46,12 @@
sudo rake:gems:install
== USAGE
+=== Active Record Extension
+
Add a raw_ssn that is at least 9 in length to the database table of the model you desire to track a SSN on.
Specify usage in your model:
class Person
@@ -60,9 +63,18 @@
person = Peson.new :ssn => '123456789'
person.ssn # => 123-45-6789
person.ssn = '123-45-6789'
person.ssn # => 123-45-6789
+
+
+=== SocialSecurityNumber Class
+
+ ssn = Ssn::SocialSecurityNumber.new( '123456789' )
+
+ ssn.raw # => 123456789
+ ssn.formatted # => 123-45-6789
+
== Note on Patches/Pull Requests
* Fork the project.