Class: StubActiveAgentSubstance

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubActiveAgentSubstance) initialize(name)

A new instance of StubActiveAgentSubstance



20
21
22
# File 'test/test_model/activeagent.rb', line 20

def initialize(name)
  @name = name
end

Instance Attribute Details

- (Object) name (readonly) Also known as: to_s

Returns the value of attribute name



18
19
20
# File 'test/test_model/activeagent.rb', line 18

def name
  @name
end

- (Object) removed_sequence (readonly)

Returns the value of attribute removed_sequence



18
19
20
# File 'test/test_model/activeagent.rb', line 18

def removed_sequence
  @removed_sequence
end

- (Object) sequence (readonly)

Returns the value of attribute sequence



18
19
20
# File 'test/test_model/activeagent.rb', line 18

def sequence
  @sequence
end

Instance Method Details

- (Object) <=>(other)



32
33
34
# File 'test/test_model/activeagent.rb', line 32

def <=>(other)
  @name.downcase <=> other.to_s.downcase 
end

- (Object) ==(other)



23
24
25
# File 'test/test_model/activeagent.rb', line 23

def ==(other)
  @name==other.name if other
end

- (Object) add_sequence(sequence)



26
27
28
# File 'test/test_model/activeagent.rb', line 26

def add_sequence(sequence)
  @sequence = sequence
end

- (Object) remove_sequence(sequence)



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

def remove_sequence(sequence)
  @removed_sequence = sequence
end