class Spoll::Models::Event

Attributes

event_type[RW]
match[RW]

Public Instance Methods

set_relations(response) click to toggle source
# File lib/spoll/models/event.rb, line 12
def set_relations(response)
  set_relation(:event_type, response.event_types, 'id', :event_type_id)
  set_relation(:match, response.matches, 'id', :match_id)
end