Module: CloudApp

Defined in:
lib/cloudapp_api.rb,
lib/cloudapp/base.rb,
lib/cloudapp/drop.rb,
lib/cloudapp/client.rb,
lib/cloudapp/account.rb,
lib/cloudapp/gift_card.rb,
lib/cloudapp/multipart.rb,
lib/cloudapp/response_error.rb

Overview

A simple Ruby wrapper for the CloudApp API. Uses HTTParty and provides two alternative interfaces for interracting with the API. An ActiveResource-like interface is provided alongside a simple client interface.

Defined Under Namespace

Classes: Account, Base, Client, Drop, GiftCard, Item, Multipart, ResponseError

Constant Summary

VERSION =

Version number

"0.3.1"
HEADERS =

Globally set request headers

{
  "User-Agent"    => "Ruby.CloudApp.API",
  "Accept"        => "application/json",
  "Content-Type"  => "application/json"
}

Class Method Summary collapse

Class Method Details

.authenticate(email, password) ⇒ Hash

Sets the authentication credentials in a class variable

Parameters:

  • email (String)

    cl.ly username

  • password (String)

    cl.ly password

Returns:

  • (Hash)

    authentication credentials



22
23
24
# File 'lib/cloudapp_api.rb', line 22

def CloudApp.authenticate(email, password)
  Base.authenticate(email, password)
end