Class: RubyEventStore::RSpec::FetchUnpublishedEvents
- Inherits:
-
Object
- Object
- RubyEventStore::RSpec::FetchUnpublishedEvents
- Defined in:
- lib/ruby_event_store/rspec/fetch_unpublished_events.rb
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
readonly
Returns the value of attribute aggregate.
Instance Method Summary collapse
Instance Attribute Details
#aggregate ⇒ Object (readonly)
Returns the value of attribute aggregate.
18 19 20 |
# File 'lib/ruby_event_store/rspec/fetch_unpublished_events.rb', line 18 def aggregate @aggregate end |
Instance Method Details
#aggregate? ⇒ Boolean
14 15 16 |
# File 'lib/ruby_event_store/rspec/fetch_unpublished_events.rb', line 14 def aggregate? !aggregate.nil? end |
#call ⇒ Object
10 11 12 |
# File 'lib/ruby_event_store/rspec/fetch_unpublished_events.rb', line 10 def call aggregate.unpublished_events.to_a end |
#in(aggregate) ⇒ Object
6 7 8 |
# File 'lib/ruby_event_store/rspec/fetch_unpublished_events.rb', line 6 def in(aggregate) @aggregate = aggregate end |