Module: Splunker::Models::Subresource::ClassMethods
- Defined in:
- lib/splunker/models/subresource.rb
Instance Method Summary collapse
- #find_all(options = {}) ⇒ Object
- #find_as_subresource(service_path, object_id, subresource, options = {}) ⇒ Object
- #find_by_id(object_id, options = {}) ⇒ Object
- #where(options = {}) ⇒ Object
Instance Method Details
#find_all(options = {}) ⇒ Object
13 14 15 |
# File 'lib/splunker/models/subresource.rb', line 13 def find_all(={}) 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, ={}) object_path = "#{service_path}/#{escape_object_id(object_id)}/#{subresource}" self.new(self.client.get(object_path, )) end |
#find_by_id(object_id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/splunker/models/subresource.rb', line 17 def find_by_id(object_id, ={}) raise NoMethodError, "Finders not available for subresources." end |
#where(options = {}) ⇒ Object
9 10 11 |
# File 'lib/splunker/models/subresource.rb', line 9 def where(={}) raise NoMethodError, "Finders not available for subresources." end |