Class: MisarMail::WalletResource
- Defined in:
- lib/misar_mail/client.rb
Instance Method Summary collapse
-
#credit(data: {}) ⇒ Object
POST /wallet/credit.
-
#debit(data: {}) ⇒ Object
POST /wallet/debit.
-
#get ⇒ Object
GET /wallet.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from MisarMail::Resource
Instance Method Details
#credit(data: {}) ⇒ Object
POST /wallet/credit
533 534 535 |
# File 'lib/misar_mail/client.rb', line 533 def credit(data: {}) @client.request(:post, "/wallet/credit", data) end |
#debit(data: {}) ⇒ Object
POST /wallet/debit
538 539 540 |
# File 'lib/misar_mail/client.rb', line 538 def debit(data: {}) @client.request(:post, "/wallet/debit", data) end |
#get ⇒ Object
GET /wallet
528 529 530 |
# File 'lib/misar_mail/client.rb', line 528 def get @client.request(:get, "/wallet") end |