Class: Splunk::Apps

Inherits:
Collection show all
Defined in:
lib/splunk-sdk-ruby/collection/apps.rb

Instance Attribute Summary

Attributes inherited from ReadOnlyCollection

#entity_class, #resource, #service

Instance Method Summary collapse

Methods inherited from Collection

#create, #delete, #delete_if

Methods inherited from ReadOnlyCollection

#assoc, #atom_entry_to_entity, #each, #each_key, #each_pair, #each_value, #empty?, #fetch, #has_key?, #keys, #length, #values

Constructor Details

#initialize(service, resource, entity_class = Entity) ⇒ Apps

Returns a new instance of Apps.



25
26
27
28
29
30
31
32
33
# File 'lib/splunk-sdk-ruby/collection/apps.rb', line 25

def initialize(service, resource, entity_class=Entity)
  super(service, resource, entity_class)

  # On Splunk 4.2, a newly created app does not have its Atom returned.
  # Instead, an Atom entity named "Created" is returned, so we have to
  # refresh the app manually. After 4.2 is no longer supported, we can
  # remove this line.
  @always_fetch = true
end