Class: WhatCD
- Inherits:
-
Object
- Object
- WhatCD
- Defined in:
- lib/whatcd.rb
Overview
Public: An API wrapper for What.cd’s JSON API.
Examples
client = WhatCD::Client.new 'username', 'password'
client.fetch :user, :id => 666
=> { ... }
client.fetch :browse, :searchstr => 'The Flaming Lips'
=> { ... }
Defined Under Namespace
Classes: Client
Constant Summary collapse
- AuthError =
Class.new StandardError
- APIError =
Class.new StandardError