49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/ci_block_io.rb', line 49
def self.method_missing(m, *args, &block)
method_name = m.to_s
if ['withdraw', 'withdraw_from_address', 'withdraw_from_addresses', 'withdraw_from_user', 'withdraw_from_users', 'withdraw_from_label', 'withdraw_from_labels'].include?(m.to_s) then
self.withdraw(args.first, m.to_s)
elsif ['sweep_from_address'].include?(m.to_s) then
self.sweep(args.first, m.to_s)
else
params = get_params(args.first)
self.api_call([method_name, params])
end
end
|