Class: Payture::User

Inherits:
Wallet show all
Defined in:
lib/payture/user.rb

Constant Summary collapse

PATH_REGISTER =
'/vwapi/Register'
PATH_UPDATE =
'/vwapi/Update'
PATH_DELETE =
'/vwapi/Delete'
PATH_CHECK =
'/vwapi/Check'

Constants inherited from Wallet

Wallet::PATH_INIT, Wallet::PATH_PAY

Instance Method Summary collapse

Methods inherited from Wallet

#init, #pay

Methods inherited from API

#host, #initialize, #request

Constructor Details

This class inherits a constructor from Payture::API

Instance Method Details

#check(vwid, data) ⇒ Object



20
21
22
# File 'lib/payture/user.rb', line 20

def check(vwid, data)
  self.request(PATH_CHECK, vwid, data)
end

#delete(vwid, data) ⇒ Object



16
17
18
# File 'lib/payture/user.rb', line 16

def delete(vwid, data)
  self.request(PATH_DELETE, vwid, data)
end

#register(vwid, data) ⇒ Object



8
9
10
# File 'lib/payture/user.rb', line 8

def register(vwid, data)
  self.request(PATH_REGISTER, vwid, data)
end

#update(vwid, data) ⇒ Object



12
13
14
# File 'lib/payture/user.rb', line 12

def update(vwid, data)
  self.request(PATH_UPDATE, vwid, data)
end