Class: Splunk::AppNamespace
- Inherits:
-
Object
- Object
- Splunk::AppNamespace
- Includes:
- Namespace
- Defined in:
- lib/splunk-sdk-ruby/namespace.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(app) ⇒ AppNamespace
constructor
A new instance of AppNamespace.
- #is_exact? ⇒ Boolean
- #to_path_fragment ⇒ Object
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
#app ⇒ Object (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
208 209 210 |
# File 'lib/splunk-sdk-ruby/namespace.rb', line 208 def is_exact?() @app != "-" end |
#to_path_fragment ⇒ Object
212 213 214 |
# File 'lib/splunk-sdk-ruby/namespace.rb', line 212 def to_path_fragment() ["servicesNS", "nobody", @app] end |