lib/moip2/api.rb in moip2-0.1.4 vs lib/moip2/api.rb in moip2-1.0.0

- old
+ new

@@ -1,7 +1,6 @@ module Moip2 - class Api attr_reader :client def initialize(client) @client = client @@ -25,8 +24,32 @@ def keys Moip2::KeysApi.new(client) end - 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