README.md in iceland-0.1.2 vs README.md in iceland-0.1.3
- old
+ new
@@ -67,19 +67,26 @@
# Retrieve the kennitala as a string.
# This is a sanitized string, without any non-numeric characters.
k.to_s
# => "0101302989"
-# Get the entity type (results in 'person' or 'entity')
+# Get the entity type (results in 'person' or 'company')
k.entity_type
# => "person"
+# It's also possible to use .is_company and .is_person to achieve the same thing
+k.is_company?
+# => false
+
+k.is_person?
+# => true
+
# Get the birth date or registration day as a Date object
k.to_date
# => #<Date: 1930-01-01 ((2425978j,0s,0n),+0s,2299161j)>
-# Get the current age of entity. Useful for age restrictions.
+# Get the current age of the entity. Useful for age restrictions.
k.age
# => 86
```
## Todo
@@ -100,9 +107,11 @@
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/stefanvignir/iceland_gem.
+
+Do make sure that the `rspec` unit tests run before sending a pull request and write tests for any new functionality you add.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).