class Moip2::Resource::Order
Attributes
client[R]
external_id[R]
payment_api[R]
Public Class Methods
new(client, response)
click to toggle source
Calls superclass method
# File lib/moip2/resource/order.rb, line 6 def initialize(client, response) super(response) @client = client if response.respond_to?(:external_id) @payment_api = PaymentApi.new(client) @external_id = response.external_id end end
Public Instance Methods
create_payment(payment)
click to toggle source
# File lib/moip2/resource/order.rb, line 16 def create_payment(payment) payment_api.create(external_id, payment) end