Module: Splunker::Models::Subresource::ClassMethods

Defined in:
lib/splunker/models/subresource.rb

Instance Method Summary collapse

Instance Method Details

#find_all(options = {}) ⇒ Object

Raises:

  • (NoMethodError)


13
14
15
# File 'lib/splunker/models/subresource.rb', line 13

def find_all(options={})
  raise NoMethodError, "Finders not available for subresources."
end

#find_as_subresource(service_path, object_id, subresource, options = {}) ⇒ Object



4
5
6
7
# File 'lib/splunker/models/subresource.rb', line 4

def find_as_subresource(service_path, object_id, subresource, options={})
  object_path = "#{service_path}/#{escape_object_id(object_id)}/#{subresource}"
  self.new(self.client.get(object_path, options))
end

#find_by_id(object_id, options = {}) ⇒ Object

Raises:

  • (NoMethodError)


17
18
19
# File 'lib/splunker/models/subresource.rb', line 17

def find_by_id(object_id, options={})
  raise NoMethodError, "Finders not available for subresources."
end

#where(options = {}) ⇒ Object

Raises:

  • (NoMethodError)


9
10
11
# File 'lib/splunker/models/subresource.rb', line 9

def where(options={})
  raise NoMethodError, "Finders not available for subresources."
end