module Simplewoo::Client::Personality

Public Instance Methods

personality(id, options = {})
personality_for_slider(id, options = {}) click to toggle source

Returns the personalities for the slider

@param [Integer] id - The slider id that the matches are for

@return [Hashie::Mash] personalities - the personalities for the slider

@example Return the personalities for a slider

Simplewoo::Client.personality_for_slider(1)
# File lib/simplewoo/client/personality.rb, line 12
def personality_for_slider(id, options = {})
  get("/sliders/#{id}/personality", options)
end
Also aliased as: personality
reset(id, options = {}) click to toggle source

Resets the slider

@param [Integer] id - The slider id that is reset

@return status only

@example Reset the personality for a slider

Simplewoo::Client.reset(1)
# File lib/simplewoo/client/personality.rb, line 25
def reset(id, options = {})
  delete("/sliders/#{id}/reset", options)
end