Module: Shushu::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
  [Shushu.url, "/accounts"].join
end

#createObject



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

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