Sha256: 1e80bc7566acd28d53073edd362019b3b99d499180adec9751448a3a73ab86dd

Contents?: true

Size: 295 Bytes

Versions: 28

Compression:

Stored size: 295 Bytes

Contents

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
billimatic-client-0.11.0 lib/billimatic/resources/organization.rb
billimatic-client-0.10.2 lib/billimatic/resources/organization.rb
billimatic-client-0.10.1 lib/billimatic/resources/organization.rb
billimatic-client-0.10.0 lib/billimatic/resources/organization.rb
billimatic-client-0.9.0 lib/billimatic/resources/organization.rb
billimatic-client-0.8.0 lib/billimatic/resources/organization.rb
billimatic-client-0.7.0 lib/billimatic/resources/organization.rb
billimatic-client-0.6.0 lib/billimatic/resources/organization.rb