Class: Billimatic::Resources::Organization
- Defined in:
- lib/billimatic/resources/organization.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#collection_name, #create, crud, #destroy, #initialize, #list, #list_by_organization, #parsed_body, #show, #show_by_organization, #update
Methods included from Hooks
Constructor Details
This class inherits a constructor from Billimatic::Resources::Base
Instance Method Details
#search(cnpj:) ⇒ Object
6 7 8 9 10 |
# File 'lib/billimatic/resources/organization.rb', line 6 def search(cnpj:) http.get("#{resource_base_path}/search", params: {cnpj: cnpj}) do |response| respond_with_entity(response) end end |