Class: Baron::Company::MajorCompany

Inherits:
Baron::Company show all
Includes:
Shareholder
Defined in:
lib/baron/company/major_company.rb

Overview

A major company represents a 10 share company in an 18xx Game It has a directors certificate which represents a 20% stake in the company and eight standard certificates each representing a 10% stake

Instance Attribute Summary

Attributes inherited from Baron::Company

#abbreviation, #name

Instance Method Summary collapse

Methods included from Shareholder

#add_transaction, #balance, #certificates, #certificates_for, #directorships, #give, #grant, #largest_train, #percentage_owned, #private_certificates, #trains

Methods inherited from Baron::Company

#face_value, #initialize, #to_s

Constructor Details

This class inherits a constructor from Baron::Company

Instance Method Details

#floated?Boolean

Has this company floated?

Once a company has sold a particular threshold of certificates, the company is floated, and begins operating. The first thing that happens when a company floats is that it is given is operating capital.

Examples:

company.floated?

Returns:

  • (Boolean)

21
22
23
# File 'lib/baron/company/major_company.rb', line 21

def floated?
  transactions.any?
end