Class: EventStoreSubscriptions::SubscriptionStatistic

Inherits:
Object
  • Object
show all
Defined in:
lib/event_store_subscriptions/subscription_statistic.rb

Overview

Holds Subscription statistic

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSubscriptionStatistic

Returns a new instance of SubscriptionStatistic.



8
9
10
11
12
13
# File 'lib/event_store_subscriptions/subscription_statistic.rb', line 8

def initialize
  @last_error = nil
  @last_restart_at = nil
  @errors_count = 0
  @events_processed = 0
end

Instance Attribute Details

#errors_countObject

Returns the value of attribute errors_count.



6
7
8
# File 'lib/event_store_subscriptions/subscription_statistic.rb', line 6

def errors_count
  @errors_count
end

#events_processedObject

Returns the value of attribute events_processed.



6
7
8
# File 'lib/event_store_subscriptions/subscription_statistic.rb', line 6

def events_processed
  @events_processed
end

#last_errorObject

Returns the value of attribute last_error.



6
7
8
# File 'lib/event_store_subscriptions/subscription_statistic.rb', line 6

def last_error
  @last_error
end

#last_restart_atObject

Returns the value of attribute last_restart_at.



6
7
8
# File 'lib/event_store_subscriptions/subscription_statistic.rb', line 6

def last_restart_at
  @last_restart_at
end