Module: ANAF
- Defined in:
- lib/anaf.rb,
lib/anaf/web_services.rb,
lib/anaf/web_services/version.rb,
lib/anaf/web_services/vat_registry.rb,
lib/anaf/web_services/balance_sheet.rb
Overview
:nodoc:
Defined Under Namespace
Modules: WebServices
Class Method Summary collapse
Class Method Details
.get_balance_sheet(cui, year) ⇒ Object
20 21 22 |
# File 'lib/anaf.rb', line 20 def get_balance_sheet(cui, year) WebServices::BalanceSheet.new(cui, year).call end |
.get_companies(cuis) ⇒ Object
14 15 16 17 18 |
# File 'lib/anaf.rb', line 14 def get_companies(cuis) WebServices::VatRegistry.new(cuis).call.first rescue WebServices::InvalidRequest [] end |
.get_company(cui) ⇒ Object
8 9 10 11 12 |
# File 'lib/anaf.rb', line 8 def get_company(cui) WebServices::VatRegistry.new([cui]).call.first rescue WebServices::InvalidRequest nil end |