Class: Baron::Rules::PrivateCompanyConfig Private

Inherits:
YamlConfig
  • Object
show all
Defined in:
lib/baron/rules.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Creates a Private Company from the config file

Instance Method Summary collapse

Methods inherited from YamlConfig

#initialize, #money

Constructor Details

This class inherits a constructor from Baron::Rules::YamlConfig

Instance Method Details

#companyBaron::Comany::PrivateCompany

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the private company object

Returns:

  • (Baron::Comany::PrivateCompany)

213
214
215
216
217
218
219
220
# File 'lib/baron/rules.rb', line 213

def company
  Company::PrivateCompany.new(
    @config.fetch('abbreviation'),
    @config.fetch('name'),
    face_value: money('face_value'),
    revenue: money('revenue')
  )
end