Sha256: 330452309f22c6e3ce29191cdad6f90d1aa06bc485b152a27ab2ca9378ba1fb1
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
require 'rest_client' require 'open-uri' module I2X class Cashier public ## # = Verify # => Verify if items have already been seen in the past (on the cache). # # == Params # - *memory*: the key identifier to be verified # - *payload*: the value for matching/verification # - *agent*: the agent performing the verification # - *seed*: seed data (if available) # def self.verify memory, agent, payload, seed begin response = RestClient.post "#{I2X::Config.host}fluxcapacitor/verify.json", {:access_token => I2X::Config.access_token, :agent => agent, :memory => memory, :payload => payload, :seed => seed} rescue Exception => e response = {:status => 400} end response end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i2x-0.0.4 | lib/i2x/cashier.rb |