Method: Elasticshell::Scope#initialize

Defined in:
lib/elasticshell/scopes.rb

#initialize(path, options) ⇒ Scope

Returns a new instance of Scope.



62
63
64
65
66
67
# File 'lib/elasticshell/scopes.rb', line 62

def initialize path, options
  self.verb   = options.delete(:verb)
  self.path   = path
  self.client = options[:client]
  self.scopes = initial_scopes
end