Sha256: edba8e8be51825427e44448e594189aa2f8a92ffdc7edb7f17181b1a17c17e5f
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
module Moip2 module Resource class Order < SimpleDelegator attr_reader :client, :payment_api, :external_id 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 def create_payment(payment) payment_api.create(external_id, payment) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems