README.md in auric-vault-door-0.0.1 vs README.md in auric-vault-door-0.0.2
- old
+ new
@@ -16,10 +16,13 @@
$ gem install auric-vault-door
## Usage
-@door = Auric::Vault::Door.new('shared_secret_goes_here', 'merchant_id', 'config_id', 'segment', @production_boolean?)
+It now expects a hash or arguments when being created:
+args = {secret: 'shared_secret_goes_here', mtid: 'merchant_id', config_id: 'config_id', segment: '123'} #optional: production: true, defaults to false
+
+@door = Auric::Vault::Door.new(args)
@door.encrypt('string_to_encrypt')
=> 'dpFAl7BY260IWzFxxxx'
@door.decrypt('dpFAl7BY260IWzFxxxx')