Method: Tito::Eventable::ClassMethods#for_event

Defined in:
lib/tito/eventable.rb

#for_event(url, options = {}) ⇒ Object



27
28
29
# File 'lib/tito/eventable.rb', line 27

def for_event(url, options = {})
  RequestProxy.new(proxy_class: self, proxy_path: url, api_key: options.delete(:api_key))
end