Method: Hive::Broadcast.transfer_from_savings
- Defined in:
- lib/hive/broadcast.rb
.transfer_from_savings(options, &block) ⇒ Object
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 |
# File 'lib/hive/broadcast.rb', line 1110 def self.transfer_from_savings(, &block) required_fields = %i(from request_id to amount) params = [:params] check_required_fields(params, *required_fields) params[:memo] ||= '' params[:amount] = normalize_amount(.merge amount: params[:amount]) ops = [[:transfer_from_savings, params]] process(.merge(ops: ops), &block) end |