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