Ruby gem to make requests to Decision Logic service. Website: https://www.decisionlogic.com
Add this line to your application's Gemfile:
gem 'decision_logic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install decision_logic
request = DecisionLogic.new(access_hash)
access_hash = {
:service_key => "xxxxxxxxxxxx",
:site_user_guid => "xxxxxxxxxxxx",
:profile_guid => "xxxxxxxxxx"})
}
request.service_key - Returns service_key value
request.site_user_guid - Returns site_user_guid value
request.profile_guid - Returns profile_guid value
request.hello_world - Test to see if you can connect to the service. Should return "Hello World"
request.search_banks_by_bank_name(bank_name) - Search for bank name. Returns hash with:
:content_service_id
:content_service_display_name
:home_url
:reliablility
request.create_request4(service_hash, entity_hash)
Takes two input hashes:
service_hash =
:routing_number
:content_service_id
entity_hash =
:customer_id
:first_name
:last_name
:account_number
:email_address
Returns either an error message or a 6 character string request code.
- Fork it ( http://github.com//decision_logic/fork )
- Create your feature branch (
git checkout -b my-new-feature) - See dev.rb file in root
- Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request