Class: Sapphire::DSL::Events::DataSegment

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/DSL/Events/DataSegment.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ DataSegment

Returns a new instance of DataSegment.



6
7
8
9
# File 'lib/sapphire/DSL/Events/DataSegment.rb', line 6

def initialize(key)
  @key = key
  @expectations = []
end

Instance Method Details

#AddExpectation(expectation) ⇒ Object



11
12
13
# File 'lib/sapphire/DSL/Events/DataSegment.rb', line 11

def AddExpectation(expectation)
  @expectations << expectation
end