Exception: DefraRuby::CompaniesHouse::InvalidCompanyNumberError
- Inherits:
-
StandardError
- Object
- StandardError
- DefraRuby::CompaniesHouse::InvalidCompanyNumberError
- Defined in:
- lib/defra_ruby/companies_house/api.rb
Instance Method Summary collapse
-
#initialize(company_number) ⇒ InvalidCompanyNumberError
constructor
A new instance of InvalidCompanyNumberError.
- #message ⇒ Object
Constructor Details
#initialize(company_number) ⇒ InvalidCompanyNumberError
Returns a new instance of InvalidCompanyNumberError.
22 23 24 25 |
# File 'lib/defra_ruby/companies_house/api.rb', line 22 def initialize(company_number) @company_number = company_number super end |
Instance Method Details
#message ⇒ Object
27 28 29 |
# File 'lib/defra_ruby/companies_house/api.rb', line 27 def I18n.t(".defra_ruby.companies_house.errors.invalid_company_number", company_number: @company_number) end |