Class: Iugu::Api::Invoice
- Inherits:
-
IuguResource
- Object
- ActiveResource::Base
- IuguResource
- Iugu::Api::Invoice
- Defined in:
- lib/iugu-api/models/invoice.rb
Instance Method Summary collapse
Methods inherited from IuguResource
#build_options, find, #to_json, #to_xml
Instance Method Details
#logs(scope = :all) ⇒ Object
9 10 11 |
# File 'lib/iugu-api/models/invoice.rb', line 9 def logs(scope = :all) Iugu::Api::InvoiceLog.find(scope, params: { invoice_id: self.id }) end |
#virtual_attributes ⇒ Object
5 6 7 |
# File 'lib/iugu-api/models/invoice.rb', line 5 def virtual_attributes [ 'total_cents' ] end |