Class Index | File Index

Classes


Class Account


Extends Resource.
Account resource
Defined in: account.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Account(spire, data)
Represents an account in the spire api.
Field Summary
Field Attributes Field Name and Description
 
Actual data from the spire.io api.
 
Reference to spire object.
Method Summary
Method Attributes Method Name and Description
 
reset(cb)
Resets the account Note that this passes a session to the callback, and not an account.
 
Gets the account secret
 
Updates the billing plan for the account.
Methods borrowed from class Resource:
authorization, capabilities, capability, get, getIfCapable, mediaType, request, schema, update, url
Class Detail
Account(spire, data)
Represents an account in the spire api.
Parameters:
spire
{object} Spire object
data
{object} Account data from the spire api
Field Detail
data
Actual data from the spire.io api.

spire
Reference to spire object.
Method Detail
reset(cb)
Resets the account Note that this passes a session to the callback, and not an account. This is because many of the session urls will have changed.
Parameters:
{function (err|session)} cb
Callback

secret()
Gets the account secret

updateBillingSubscription(info, cb)
Updates the billing plan for the account.
Parameters:
{object} info
New billing plan data
{function (err|account)} cb
Callback

Documentation generated by JsDoc Toolkit 2.4.0 on Wed May 30 2012 16:58:14 GMT-0700 (PDT)