Class: Leetchi::WithdrawalContribution

Inherits:
Ressource
  • Object
show all
Defined in:
lib/leetchi/withdrawal_contribution.rb

Class Method Summary collapse

Class Method Details

.create(data) ⇒ Object

Create a withdrawal contribution

  • Args :

    • data -> A JSON with the following attributes (Square brackets for optionals):

      * [Tag]
      * UserID
      * WalletID
      * AmountDeclared
      
  • Returns :

    • A withdrawal contribution object



16
17
18
# File 'lib/leetchi/withdrawal_contribution.rb', line 16

def self.create(data)
  post_request('contributions-by-withdrawal', data)
end

.get(withdrawal_contribution_id) ⇒ Object

Get a withdrawal contribution

  • Args :

    • withdrawal_contribution_id -> The id of the withdrawal contribution you want to retrieve

  • Returns :

    • A withdrawal contribution object



28
29
30
# File 'lib/leetchi/withdrawal_contribution.rb', line 28

def self.get(withdrawal_contribution_id)
  get_request(File.join('contributions-by-withdrawal', withdrawal_contribution_id.to_s))
end