Class: Baron::Rules::MajorCompanyConfig 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 Major 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::Company::MajorCompany

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 major company object


231
232
233
234
235
236
# File 'lib/baron/rules.rb', line 231

def company
  Company::MajorCompany.new(
    @config.fetch('abbreviation'),
    @config.fetch('name')
  )
end