Class: ODDB::StubRegistrationApp

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubRegistrationApp) initialize

A new instance of StubRegistrationApp



57
58
59
# File 'test/test_model/registration.rb', line 57

def initialize
  @companies = {}
end

Instance Attribute Details

- (Object) delete_pointer (readonly)

Returns the value of attribute delete_pointer



56
57
58
# File 'test/test_model/registration.rb', line 56

def delete_pointer
  @delete_pointer
end

- (Object) pointer (readonly)

Returns the value of attribute pointer



56
57
58
# File 'test/test_model/registration.rb', line 56

def pointer
  @pointer
end

- (Object) values (readonly)

Returns the value of attribute values



56
57
58
# File 'test/test_model/registration.rb', line 56

def values
  @values
end

Instance Method Details

- (Object) company(name)



60
61
62
# File 'test/test_model/registration.rb', line 60

def company(name)
  @companies[name] ||= StubRegistrationCompany.new(name)
end

- (Object) delete(pointer)



66
67
68
# File 'test/test_model/registration.rb', line 66

def delete(pointer)
  @delete_pointer = pointer
end

- (Object) update(pointer, values)



63
64
65
# File 'test/test_model/registration.rb', line 63

def update(pointer, values)
  @pointer, @values = pointer, values
end