Class: Splunk::AppNamespace

Inherits:
Object
  • Object
show all
Includes:
Namespace
Defined in:
lib/splunk-sdk-ruby/namespace.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ AppNamespace

Returns a new instance of AppNamespace.



200
201
202
# File 'lib/splunk-sdk-ruby/namespace.rb', line 200

def initialize(app)
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



198
199
200
# File 'lib/splunk-sdk-ruby/namespace.rb', line 198

def app
  @app
end

Instance Method Details

#==(other) ⇒ Object



204
205
206
# File 'lib/splunk-sdk-ruby/namespace.rb', line 204

def ==(other)
  other.is_a?(AppNamespace) && @app == other.app
end

#is_exact?Boolean

Returns:

  • (Boolean)


208
209
210
# File 'lib/splunk-sdk-ruby/namespace.rb', line 208

def is_exact?()
  @app != "-"
end

#to_path_fragmentObject



212
213
214
# File 'lib/splunk-sdk-ruby/namespace.rb', line 212

def to_path_fragment()
  ["servicesNS", "nobody", @app]
end