Module: Toppr::Client::Wallpaper
- Included in:
- Toppr::Client
- Defined in:
- lib/toppr/client/wallpaper.rb
Instance Method Summary collapse
-
#random(username = nil, options = {}) ⇒ Hashie::Mash
A wallpaper.
-
#wallpapers(username = nil, options = {}) ⇒ Hashie::Mash
All Wallpapers.
Instance Method Details
#random(username = nil, options = {}) ⇒ Hashie::Mash
Returns A wallpaper.
11 12 13 14 15 16 17 |
# File 'lib/toppr/client/wallpaper.rb', line 11 def random(username=nil, = {}) if username == nil request(:get, "/wallpapers/random", ) else request(:get, "/users/#{username}/wallpapers/random", ) end end |
#wallpapers(username = nil, options = {}) ⇒ Hashie::Mash
Returns All Wallpapers.
26 27 28 29 30 31 32 |
# File 'lib/toppr/client/wallpaper.rb', line 26 def wallpapers(username=nil, = {}) if username == nil request(:get, "/wallpapers", ) else request(:get, "/users/#{username}/wallpapers", ) end end |