Sha256: d688184e7ceb894b64163651332c1b409228b5c7885519863748fa1e82032588

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

module Billimatic
  module Resources
    class Person < Base
      crud :list, :show, :create, :update, :destroy

      def initialize(http)
        @collection_name = 'people'
        super http
      end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
billimatic-client-1.0.1 lib/billimatic/resources/person.rb
billimatic-client-1.0.0 lib/billimatic/resources/person.rb
billimatic-client-0.22.1 lib/billimatic/resources/person.rb
billimatic-client-0.22.0 lib/billimatic/resources/person.rb
billimatic-client-0.21.0 lib/billimatic/resources/person.rb
billimatic-client-0.20.0 lib/billimatic/resources/person.rb
billimatic-client-0.19.1 lib/billimatic/resources/person.rb
billimatic-client-0.19.0 lib/billimatic/resources/person.rb