Class: ODDB::State::Companies::TestMergeCompaniesState::StubCompany

Inherits:
Object
  • Object
show all
Defined in:
test/test_state/companies/mergecompanies.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubCompany) initialize

A new instance of StubCompany



57
58
59
# File 'test/test_state/companies/mergecompanies.rb', line 57

def initialize
  @registrations = []
end

Instance Attribute Details

- (Object) name

Returns the value of attribute name



56
57
58
# File 'test/test_state/companies/mergecompanies.rb', line 56

def name
  @name
end

- (Object) registrations

Returns the value of attribute registrations



56
57
58
# File 'test/test_state/companies/mergecompanies.rb', line 56

def registrations
  @registrations
end

Instance Method Details

- (Object) add_registration(registration)



60
61
62
# File 'test/test_state/companies/mergecompanies.rb', line 60

def add_registration(registration)
  @registrations.push(registration).last
end

- (Object) pointer



63
64
# File 'test/test_state/companies/mergecompanies.rb', line 63

def pointer
end