Sha256: 606ebe457f6a974c3bcdaf8d5cce1c3b384472b209533b5cfbe624b5972aa0c6
Contents?: true
Size: 514 Bytes
Versions: 4
Compression:
Stored size: 514 Bytes
Contents
module Moip2 class AccountsApi attr_reader :client def initialize(client) @client = client end def base_path "/v2/accounts" end def create(account) Resource::Account.new client, client.post(base_path, account) end def exists?(tax_document) response = client.get("#{base_path}/exists?tax_document=#{tax_document}") response.success? end def show(id) Resource::Account.new client, client.get("#{base_path}/#{id}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
moip2-1.2.1 | lib/moip2/accounts_api.rb |
moip2-1.2.0 | lib/moip2/accounts_api.rb |
moip2-1.1.0 | lib/moip2/accounts_api.rb |
moip2-1.0.0 | lib/moip2/accounts_api.rb |