Sha256: 7b13040185a96650b74a13b84d9e7833a1d94f01ca6467ebcca5a885388264ef
Contents?: true
Size: 944 Bytes
Versions: 1
Compression:
Stored size: 944 Bytes
Contents
module Moip2 class Api attr_reader :client def initialize(client) @client = client end def order Moip2::OrderApi.new(client) end def payment Moip2::PaymentApi.new(client) end def invoice Moip2::InvoiceApi.new client end def refund Moip2::RefundApi.new(client) end def keys Moip2::KeysApi.new(client) end def customer Moip2::CustomerApi.new(client) end def multi_order Moip2::MultiOrderApi.new(client) end def multi_payment Moip2::MultiPaymentApi.new(client) end def accounts Moip2::AccountsApi.new(client) end def connect host = Moip2::ConnectApi.host(client.env) connect_client = Client.new(client.env, client.auth, host, client.opts) Moip2::ConnectApi.new(connect_client) end def notifications Moip2::NotificationsApi.new(client) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moip2-1.0.0 | lib/moip2/api.rb |