Skip to content
tpitale edited this page Dec 13, 2010 · 3 revisions

Once you have logged in (see Logging In) you can now fetch all the accounts and their profiles.

Garb::Management::Account.all

Get the first account:

account = Garb::Management::Account.all.first

See its id and name:

account.id
account.name

Then get its profiles:

profile = account.profiles.first

Or see all goals for the account:

account.goals
Clone this wiki locally