Class: Leetchi::Expense

Inherits:
Ressource show all
Defined in:
lib/leetchi/expense.rb

Overview

In order to make an expense you need to get a list of expense sites and then redirect a user to ExpenseURL. When the user selects a product and pays, you will be notified about an expense through the notification mechanism.

Class Method Summary collapse

Class Method Details

.get(expense_id) ⇒ Object

Get an expense

  • Args :

    • expense_id -> The id of the expense you want to retrieve

  • Returns :

    • An expense object



13
14
15
# File 'lib/leetchi/expense.rb', line 13

def self.get(expense_id)
  get_request(File.join('expenses', expense_id.to_s))
end