Class: TestCompany::StubApp

Inherits:
Object show all
Defined in:
test/test_model/company.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubApp) initialize

A new instance of StubApp



25
26
27
# File 'test/test_model/company.rb', line 25

def initialize
  @companies ||= {}
end

Instance Attribute Details

- (Object) companies (readonly)

Returns the value of attribute companies



24
25
26
# File 'test/test_model/company.rb', line 24

def companies
  @companies
end

Instance Method Details

- (Object) create_company



28
29
30
31
# File 'test/test_model/company.rb', line 28

def create_company
  company = ODDB::Company.new
  @companies.store(company.oid, company)
end