class Zold::WTS::Fake

Fake implementation.

Public Instance Methods

balance() click to toggle source
# File lib/zold/wts.rb, line 43
def balance
  Zold::Amount.new(zld: 4.0)
end
find(_query) click to toggle source
# File lib/zold/wts.rb, line 59
def find(_query)
  []
end
id() click to toggle source
# File lib/zold/wts.rb, line 47
def id
  Zold::Id::ROOT
end
pay(_keygap, _bnf, _amount, _details) click to toggle source
# File lib/zold/wts.rb, line 51
def pay(_keygap, _bnf, _amount, _details)
  'job-id'
end
pull() click to toggle source
# File lib/zold/wts.rb, line 39
def pull
  'job-id'
end
usd_rate() click to toggle source
# File lib/zold/wts.rb, line 55
def usd_rate
  5_000
end
wait(_job, time: 5 * 60) click to toggle source
# File lib/zold/wts.rb, line 63
def wait(_job, time: 5 * 60)
  raise 'Time must be positive' if time.negative?
  'OK'
end