Class: RSMP::Collection
- Inherits:
-
Data
- Object
- Data
- RSMP::Collection
- Defined in:
- lib/rsmp/collection.rb
Overview
Immutable snapshot returned by a completed collector.
Instance Attribute Summary collapse
-
#matcher_status ⇒ Object
readonly
Returns the value of attribute matcher_status.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#reached ⇒ Object
readonly
Returns the value of attribute reached.
Instance Method Summary collapse
-
#initialize(messages:, reached: [], matcher_status: {}) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(messages:, reached: [], matcher_status: {}) ⇒ Collection
Returns a new instance of Collection.
4 5 6 7 8 9 10 |
# File 'lib/rsmp/collection.rb', line 4 def initialize(messages:, reached: [], matcher_status: {}) super( messages: .dup.freeze, reached: reached.dup.freeze, matcher_status: matcher_status.dup.freeze ) end |
Instance Attribute Details
#matcher_status ⇒ Object (readonly)
Returns the value of attribute matcher_status
3 4 5 |
# File 'lib/rsmp/collection.rb', line 3 def matcher_status @matcher_status end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
3 4 5 |
# File 'lib/rsmp/collection.rb', line 3 def end |
#reached ⇒ Object (readonly)
Returns the value of attribute reached
3 4 5 |
# File 'lib/rsmp/collection.rb', line 3 def reached @reached end |