Module: VC::Account

Extended by:
Account
Included in:
Account
Defined in:
lib/models/account.rb

Instance Method Summary collapse

Instance Method Details

#accounts_urlObject



9
10
11
# File 'lib/models/account.rb', line 9

def accounts_url
  [VC.url, "/accounts"].join
end

#createObject



5
6
7
# File 'lib/models/account.rb', line 5

def create
  VC.handle_req {RestClient.post(accounts_url, {}, VC.headers)}
end