class Fastly::Service
def invoice(year = nil, month = nil)
If a year and month are passed in returns the invoice for that whole month.
Return a Invoice object representing the invoice for this service
def invoice(year = nil, month = nil) opts = { service_id: id } unless year.nil? || month.nil? opts[:year] = year opts[:month] = month end fetcher.get(Invoice, opts) end