module TheCity::API::Accounts

Public Instance Methods

church_account(options={}) click to toggle source

Returns the current City account associated with the current user

@req_scope none @return [TheCity::Account] @param options [Hash] A customizable set of options.

# File lib/the_city/api/accounts.rb, line 15
def church_account(options={})
  @church_account = nil if options.delete(:force_download)
  @church_account ||= object_from_response(TheCity::Account, :get, "/church_account", options)
end
Also aliased as: current_account, current_church
current_account(options={})
Alias for: church_account
current_church(options={})
Alias for: church_account
my_accounts(options={}) click to toggle source

Returns an array of all the City accounts associated with the current user

@req_scope none @return [Array<TheCity::Account>] @param options [Hash] A customizable set of options.

# File lib/the_city/api/accounts.rb, line 27
def my_accounts(options={})
  @my_accounts = nil if options.delete(:force_download)
  @my_accounts ||= objects_from_response(TheCity::Account, :get, "/me/accounts", options)
end