Class: Iugu::Charge

Inherits:
APIResource show all
Includes:
APICreate
Defined in:
lib/iugu/charge.rb

Instance Attribute Summary

Attributes inherited from Object

#errors

Instance Method Summary collapse

Methods included from APICreate

included

Methods inherited from APIResource

#is_new?, url

Methods inherited from Object

#add_accessor, #attributes, #copy, #initialize, #method_missing, #modified_attributes, #set_attributes

Constructor Details

This class inherits a constructor from Iugu::Object

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Iugu::Object

Instance Method Details

#invoiceObject



5
6
7
8
# File 'lib/iugu/charge.rb', line 5

def invoice
  return false unless @attributes['invoice_id']
  Invoice.fetch @attributes['invoice_id']
end