Class: Unit::Payment::BulkPaymentRequest
- Inherits:
-
Object
- Object
- Unit::Payment::BulkPaymentRequest
- Defined in:
- lib/unit/models/payment/bulk_payment_request.rb
Class Method Summary collapse
Class Method Details
.serialize(requests) ⇒ Object
9 10 11 12 |
# File 'lib/unit/models/payment/bulk_payment_request.rb', line 9 def self.serialize(requests) payload = requests.map(&:change_attributes) { "data": payload }.to_json end |