Class: Shushu::Invoice
Instance Attribute Summary collapse
-
#payment_method_id ⇒ Object
Returns the value of attribute payment_method_id.
Attributes inherited from Report
Instance Method Summary collapse
-
#initialize(payment_method_id, from, to) ⇒ Invoice
constructor
A new instance of Invoice.
- #resource ⇒ Object
Methods inherited from Report
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_id ⇒ Object
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
#resource ⇒ Object
51 52 53 |
# File 'lib/models/report.rb', line 51 def resource "/payment_methods/#{payment_method_id}/invoices" end |