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-1.0.1 lib/billimatic/resources/organization.rb
billimatic-client-1.0.0 lib/billimatic/resources/organization.rb
billimatic-client-0.22.1 lib/billimatic/resources/organization.rb
billimatic-client-0.22.0 lib/billimatic/resources/organization.rb
billimatic-client-0.21.0 lib/billimatic/resources/organization.rb
billimatic-client-0.20.0 lib/billimatic/resources/organization.rb
billimatic-client-0.19.1 lib/billimatic/resources/organization.rb
billimatic-client-0.19.0 lib/billimatic/resources/organization.rb
billimatic-client-0.18.1 lib/billimatic/resources/organization.rb
billimatic-client-0.18.0 lib/billimatic/resources/organization.rb
billimatic-client-0.17.0 lib/billimatic/resources/organization.rb
billimatic-client-0.16.0 lib/billimatic/resources/organization.rb
billimatic-client-0.15.0 lib/billimatic/resources/organization.rb
billimatic-client-0.14.1 lib/billimatic/resources/organization.rb
billimatic-client-0.14.0 lib/billimatic/resources/organization.rb
billimatic-client-0.13.0 lib/billimatic/resources/organization.rb
billimatic-client-0.12.0 lib/billimatic/resources/organization.rb
billimatic-client-0.11.3 lib/billimatic/resources/organization.rb
billimatic-client-0.11.2 lib/billimatic/resources/organization.rb
billimatic-client-0.11.1 lib/billimatic/resources/organization.rb