class MercadoPago::CreateAdvancedPayment
Attributes
advanced_payment[RW]
Public Class Methods
new(advanced_payment)
click to toggle source
Calls superclass method
MercadoPago::BaseAction::new
# File lib/mercado_pago/actions/create_advanced_payment.rb, line 3 def initialize(advanced_payment) super() self.advanced_payment = advanced_payment end
Private Instance Methods
body()
click to toggle source
# File lib/mercado_pago/actions/create_advanced_payment.rb, line 14 def body advanced_payment.to_hash.to_json end
perform_action()
click to toggle source
# File lib/mercado_pago/actions/create_advanced_payment.rb, line 10 def perform_action rest_client.advanced_payments.post(body: body) end