Class: Antaeus::Resources::Hook

Inherits:
Antaeus::Resource show all
Defined in:
lib/antaeus-sdk/resources/hook.rb

Instance Attribute Summary

Attributes inherited from Antaeus::Resource

#client, #errors

Class Method Summary collapse

Methods inherited from Antaeus::Resource

#<=>, all, delayed_property, #destroy, #fresh?, gen_property_methods, get, human, i18n_key, #id, immutable, #immutable?, immutable?, #initialize, #model_name, #new?, param_key, path, path_for, #path_for, paths, #paths, #persisted?, properties, property, #reload, route_key, #save, search, singular_route_key, #tainted?, #to_key, #to_model, #to_param, #update, where

Constructor Details

This class inherits a constructor from Antaeus::Resource

Class Method Details

.all_available(options = {}) ⇒ Object



11
12
13
14
# File 'lib/antaeus-sdk/resources/hook.rb', line 11

def self.all_available(options = {})
  validate_options(options)
  options[:client].get("#{path_for(:all)}/available")['available_hooks']
end