Module: Simplewoo::Client::Match

Included in:
Simplewoo::Client
Defined in:
lib/simplewoo/client/match.rb

Instance Method Summary collapse

Instance Method Details

#match_for_slider(id, options = {}) ⇒ Hashie::Mash

Returns the matched entities and matched personalities for the slider

Examples:

Return the entity matches for a slider

Simplewoo::Client.match_for_slider(1).entities

Return the personality matches for a slider

Simplewoo::Client.match_for_slider(1).personalities

Parameters:

  • id (Integer)
    • The slider id that the matches are for

Returns:

  • (Hashie::Mash)

    matches - the matches for the slider



14
15
16
# File 'lib/simplewoo/client/match.rb', line 14

def match_for_slider(id, options = {})
  get("/sliders/#{id}/results", options)._embedded
end