Class: ODDB::StubSequenceAtcClass

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubSequenceAtcClass) initialize

A new instance of StubSequenceAtcClass



37
38
39
# File 'test/test_model/sequence.rb', line 37

def initialize
  @sequences = []
end

Instance Attribute Details

- (Object) code

Returns the value of attribute code



36
37
38
# File 'test/test_model/sequence.rb', line 36

def code
  @code
end

- (Object) sequences

Returns the value of attribute sequences



36
37
38
# File 'test/test_model/sequence.rb', line 36

def sequences
  @sequences
end

- (Object) state (readonly)

Returns the value of attribute state



35
36
37
# File 'test/test_model/sequence.rb', line 35

def state
  @state
end

Instance Method Details

- (Object) add_sequence(sequence)



40
41
42
43
# File 'test/test_model/sequence.rb', line 40

def add_sequence(sequence)
  @sequences.push(sequence)
  @state = :added
end

- (Object) remove_sequence(sequence)



44
45
46
# File 'test/test_model/sequence.rb', line 44

def remove_sequence(sequence)
  @state = :removed
end