class Fastly
def get_invoice(year = nil, month = nil)
If a year and month are passed in returns the invoices for that whole month.
Return an Invoice object
def get_invoice(year = nil, month = nil) opts = { customer_id: current_customer.id } if year.nil? || month.nil? opts[:mtd] = true else opts[:year] = year opts[:month] = month end get(Invoice, opts) end