module Tito::Eventable::ClassMethods

def event=(tito_event)

self.event_id = tito_event.id
self.attributes[:event] = tito_event
@event = tito_event

end

Public Instance Methods

[](url, options = {}) click to toggle source
# File lib/tito/eventable.rb, line 31
def [](url, options = {})
  self.for_event(url, options)
end
for_event(url, options = {}) click to toggle source
# 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