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 Also known as: match

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

Parameters:

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

Returns:

  • (Hashie::Mash)

    matches - the matches for the slider



12
13
14
# File 'lib/simplewoo/client/match.rb', line 12

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