Class: EventStoreClient::CatchUpSubscription

Inherits:
Object
  • Object
show all
Defined in:
lib/event_store_client/catch_up_subscription.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filterObject (readonly)

Returns the value of attribute filter.



5
6
7
# File 'lib/event_store_client/catch_up_subscription.rb', line 5

def filter
  @filter
end

#positionObject

Returns the value of attribute position.



6
7
8
# File 'lib/event_store_client/catch_up_subscription.rb', line 6

def position
  @position
end

#subscriberObject (readonly)

Returns the value of attribute subscriber.



5
6
7
# File 'lib/event_store_client/catch_up_subscription.rb', line 5

def subscriber
  @subscriber
end

Class Method Details

.name(subscriber) ⇒ Object



25
26
27
# File 'lib/event_store_client/catch_up_subscription.rb', line 25

def self.name(subscriber)
  subscriber.class.to_s
end

Instance Method Details

#nameObject



21
22
23
# File 'lib/event_store_client/catch_up_subscription.rb', line 21

def name
  self.class.name(subscriber)
end

#optionsObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/event_store_client/catch_up_subscription.rb', line 8

def options
  {
    filter: @filter,
    without_system_events: @without_system_events,
    all: {
      position: {
        commit_position: position[:commit_position],
        prepare_position: position[:prepare_position]
      }
    }
  }.compact
end