class Spriv::Poller
Constants
- AZURE_URI
Public Instance Methods
get_decision(id)
click to toggle source
# File lib/spriv/poller.rb, line 8 def get_decision(id) begin uri = URI.parse(AZURE_URI) params = { key: ::Spriv.config.username, secret: ::Spriv.config.password, transactionID: id } uri.query = URI.encode_www_form(params) response = Net::HTTP.get(uri) JSON.parse(response) rescue Exception => e { message: e.message } end end