Class: Spoll::Models::Event
Instance Attribute Summary collapse
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#match ⇒ Object
Returns the value of attribute match.
Instance Method Summary collapse
Methods inherited from Base
#set_array_relation, #set_relation
Instance Attribute Details
#event_type ⇒ Object
Returns the value of attribute event_type.
3 4 5 |
# File 'lib/spoll/models/event.rb', line 3 def event_type @event_type end |
#match ⇒ Object
Returns the value of attribute match.
3 4 5 |
# File 'lib/spoll/models/event.rb', line 3 def match @match end |
Instance Method Details
#set_relations(response) ⇒ Object
12 13 14 15 |
# 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 |