Class: Shushu::Invoice

Inherits:
Report
  • Object
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.



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

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.



45
46
47
# File 'lib/models/report.rb', line 45

def payment_method_id
  @payment_method_id
end

Instance Method Details

#resourceObject



51
52
53
# File 'lib/models/report.rb', line 51

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