Class: WhatCD

Inherits:
Object
  • Object
show all
Defined in:
lib/whatcd.rb,
lib/whatcd/version.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
VERSION =

Public: The version number String.

"0.2.0"