myfreecomm/billimatic-client-ruby

View on GitHub
lib/billimatic/resources/organization.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Billimatic
  module Resources
    class Organization < Base
      crud :create, :update, :destroy

      def search(cnpj:)
        http.get("#{resource_base_path}/search", params: {cnpj: cnpj}) do |response|
          respond_with_entity(response)
        end
      end
    end
  end
end