class TrustedSearch::V2::Hook
Attributes
resource[RW]
Public Class Methods
new()
click to toggle source
# File lib/trustedsearch/v2/hooks.rb, line 6 def initialize @resource = 'hooks' end
Public Instance Methods
index()
click to toggle source
Retrieve an array of all available hooks
# File lib/trustedsearch/v2/hooks.rb, line 11 def index() method_url = @resource return self.get(method_url) end
show(id = nil)
click to toggle source
Get the details of a single hook
# File lib/trustedsearch/v2/hooks.rb, line 17 def show(id = nil) method_url = @resource + "/" + id params = {} return self.get(method_url, params) end