Class: Sapphire::DSL::Events::DataSegment
- Defined in:
- lib/sapphire/DSL/Events/DataSegment.rb
Instance Method Summary collapse
- #AddExpectation(expectation) ⇒ Object
-
#initialize(key) ⇒ DataSegment
constructor
A new instance of DataSegment.
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 |