Class: Moneylovercli::Api::Category

Inherits:
MoneyLover show all
Defined in:
lib/moneylovercli/api/category.rb

Instance Attribute Summary

Attributes inherited from MoneyLover

#token

Attributes inherited from Base

#token

Instance Method Summary collapse

Methods inherited from MoneyLover

#initialize

Constructor Details

This class inherits a constructor from Moneylovercli::Api::MoneyLover

Instance Method Details

#list(wallet_id:) ⇒ Object



9
10
11
12
# File 'lib/moneylovercli/api/category.rb', line 9

def list(wallet_id:)
  self.class.post('/category/list', body: { walletId: wallet_id },
                                    headers: { authorization: "AuthJWT #{@token}" })
end