Class: Elasticshell::Scopes::Nodes
- Inherits:
-
Elasticshell::Scope
- Object
- Elasticshell::Scope
- Elasticshell::Scopes::Nodes
- Defined in:
- lib/elasticshell/scopes/nodes.rb
Constant Summary
Constants included from HasVerb
Instance Attribute Summary
Attributes inherited from Elasticshell::Scope
#client, #last_refresh_at, #path, #scopes
Class Method Summary collapse
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(options = {}) ⇒ Nodes
constructor
A new instance of Nodes.
Methods inherited from Elasticshell::Scope
#completing_scope_path_and_prefix, #completion_proc, #fetch_scopes, #initial_scopes, #refresh, #refresh!, #refreshed?, #request_names, #requests, #requests_matching, #reset!, #scopes_matching, #to_s
Methods included from HasVerb
Constructor Details
#initialize(options = {}) ⇒ Nodes
Returns a new instance of Nodes.
7 8 9 |
# File 'lib/elasticshell/scopes/nodes.rb', line 7 def initialize ={} super("/_nodes", ) end |
Class Method Details
.requests ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/elasticshell/scopes/nodes.rb', line 11 def self.requests @requests ||= { "GET" => { 'info' => "Retreive info about the cluster's nodes.", 'stats' => "Retreive stats for the cluter's nodes.", } } end |
Instance Method Details
#exists? ⇒ Boolean
20 21 22 |
# File 'lib/elasticshell/scopes/nodes.rb', line 20 def exists? true end |