Module: Simplewoo::Client::Slider

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

Instance Method Summary collapse

Instance Method Details

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

Note:

requires an authenticated Client instance (app_secret) not an authenticated user

Return the requested slider and its associated tags

Examples:

Return a slider

Simplewoo::Client.slider(1)

Parameters:

  • id (Integer)
    • the id of the slider that you want to have returned

Returns:

  • (Hashie::Mash)

    slider - the slider that was requested



26
27
28
# File 'lib/simplewoo/client/slider.rb', line 26

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

#sliders(options = {}) ⇒ Hashie::Mash

Note:

requires an authenticated Client instance (app_secret) not an authenticated user

Return the sliders for the app you are on

Examples:

Return the sliders for an app

Simplewoo::Client.sliders

Returns:

  • (Hashie::Mash)

    sliders - the sliders available for the app



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

def sliders(options = {})
  get("/sliders", options)
end