Class: RubyEventStore::RSpec::FetchUnpublishedEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_event_store/rspec/fetch_unpublished_events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aggregateObject (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

Returns:

  • (Boolean)


14
15
16
# File 'lib/ruby_event_store/rspec/fetch_unpublished_events.rb', line 14

def aggregate?
  !aggregate.nil?
end

#callObject



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