Class: Payflow::Providers::Asaas::Customer

Inherits:
Object
  • Object
show all
Defined in:
lib/payflow/providers/asaas/customer.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Customer

Returns a new instance of Customer.



7
8
9
# File 'lib/payflow/providers/asaas/customer.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#create(attrs) ⇒ Object



11
12
13
# File 'lib/payflow/providers/asaas/customer.rb', line 11

def create(attrs)
  { id: "cus_asaas_stub_#{SecureRandom.hex(4)}", provider: :asaas, email: attrs[:email], name: attrs[:name] }
end