Class: EventStoreSubscriptions::SubscriptionStatistic
- Inherits:
-
Object
- Object
- EventStoreSubscriptions::SubscriptionStatistic
- Defined in:
- lib/event_store_subscriptions/subscription_statistic.rb
Overview
Holds Subscription statistic
Instance Attribute Summary collapse
-
#errors_count ⇒ Object
Returns the value of attribute errors_count.
-
#events_processed ⇒ Object
Returns the value of attribute events_processed.
-
#last_error ⇒ Object
Returns the value of attribute last_error.
-
#last_restart_at ⇒ Object
Returns the value of attribute last_restart_at.
Instance Method Summary collapse
-
#initialize ⇒ SubscriptionStatistic
constructor
A new instance of SubscriptionStatistic.
Constructor Details
#initialize ⇒ SubscriptionStatistic
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_count ⇒ Object
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_processed ⇒ Object
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_error ⇒ Object
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_at ⇒ Object
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 |