Exception: DefraRuby::CompaniesHouse::InvalidCompanyNumberError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/defra_ruby/companies_house/api.rb

Instance Method Summary collapse

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

#messageObject



27
28
29
# File 'lib/defra_ruby/companies_house/api.rb', line 27

def message
  I18n.t(".defra_ruby.companies_house.errors.invalid_company_number", company_number: @company_number)
end