Module: CloudApp
- Defined in:
- lib/cloudapp_api.rb,
lib/cloudapp/drop.rb,
lib/cloudapp/base.rb,
lib/cloudapp/client.rb,
lib/cloudapp/account.rb,
lib/cloudapp/gift_card.rb,
lib/cloudapp/multipart.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
Constant Summary
- VERSION =
Version number
"0.2.0"- HEADERS =
Globally set request headers
{ "User-Agent" => "Ruby.CloudApp.API", "Accept" => "application/json", "Content-Type" => "application/json" }
Class Method Summary (collapse)
-
+ (Hash) authenticate(email, password)
Sets the authentication credentials in a class variable.
Class Method Details
+ (Hash) authenticate(email, password)
Sets the authentication credentials in a class variable
20 21 22 |
# File 'lib/cloudapp_api.rb', line 20 def CloudApp.authenticate(email, password) Base.authenticate(email, password) end |