Module: Virtuatable::Helpers::Accounts

Included in:
Controllers::Base
Defined in:
lib/virtuatable/helpers/accounts.rb

Overview

These helpers provide methods used to get and check accounts.

Author:

Instance Method Summary collapse

Instance Method Details

#accountObject

Raises a bad request error if the account if not found.

Raises:



10
11
12
13
14
15
# File 'lib/virtuatable/helpers/accounts.rb', line 10

def 
  return @account unless @account.nil?

  session_id_required if !respond_to?(:session) || session.nil?
  @account = session.
end

#account_id_not_foundObject



17
18
19
# File 'lib/virtuatable/helpers/accounts.rb', line 17

def 
  api_bad_request('session_id.required')
end