class Iugu::Customer

Public Instance Methods

default_payment_method() click to toggle source
# File lib/iugu/customer.rb, line 16
def default_payment_method
  return false unless @attributes['default_payment_method_id']
  PaymentMethod.fetch({ id: @attributes['default_payment_method_id'], customer_id: self.id })
end
invoices() click to toggle source
# File lib/iugu/customer.rb, line 12
def invoices
  APIChildResource.new({ customer_id: self.id }, Iugu::Invoice)
end
payment_methods() click to toggle source
# File lib/iugu/customer.rb, line 8
def payment_methods
  APIChildResource.new({ customer_id: self.id }, Iugu::PaymentMethod)
end