Class: VC::Invoice

Inherits:
Report show all
Defined in:
lib/models/report.rb

Instance Attribute Summary collapse

Attributes inherited from Report

#billable_units, #from, #to

Instance Method Summary collapse

Methods inherited from Report

#fetch, #report, #total

Constructor Details

#initialize(payment_method_id, from, to) ⇒ Invoice

Returns a new instance of Invoice.



43
44
45
# File 'lib/models/report.rb', line 43

def initialize(payment_method_id, from, to)
  @payment_method_id, @from, @to = payment_method_id, from, to
end

Instance Attribute Details

#payment_method_idObject

Returns the value of attribute payment_method_id.



41
42
43
# File 'lib/models/report.rb', line 41

def payment_method_id
  @payment_method_id
end

Instance Method Details

#resourceObject



47
48
49
# File 'lib/models/report.rb', line 47

def resource
  "/payment_methods/#{payment_method_id}/invoices"
end