Class: SearchKit::Events::CLI::List
- Inherits:
-
Object
- Object
- SearchKit::Events::CLI::List
- Includes:
- Messaging
- Defined in:
- lib/search_kit/events/cli/list.rb
Overview
An extraction of the CLI command, “pending”. When the pending comand is not given any parameters, it looks for all pending events despite of channel - or in other words, the index of events.
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ List
constructor
A new instance of List.
- #perform ⇒ Object
Methods included from Messaging
Constructor Details
#initialize(client) ⇒ List
15 16 17 |
# File 'lib/search_kit/events/cli/list.rb', line 15 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
13 14 15 |
# File 'lib/search_kit/events/cli/list.rb', line 13 def client @client end |
Instance Method Details
#perform ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/search_kit/events/cli/list.rb', line 19 def perform report_events rescue Faraday::ConnectionFailed warning "Remote events service not found" rescue JSON::ParserError => error warning "Response unreadable: #{error}" error.backtrace.each(&method(:warning)) end |