Class: Toppr::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Hashie, User, Wallpaper
Defined in:
lib/toppr/client.rb,
lib/toppr/client/user.rb,
lib/toppr/client/wallpaper.rb

Defined Under Namespace

Modules: User, Wallpaper

Instance Method Summary collapse

Methods included from Wallpaper

#random, #wallpapers

Methods included from User

#user

Instance Method Details

#request(action, path, options) ⇒ Object

Make the request to the API



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

def request(action, path, options)
	parse_response(self.class.send(action, path, options))
end