Class: WhatCD

Inherits:
Object
  • Object
show all
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