class Pin::Customer
Attributes
card[RW]
created_at[RW]
email[RW]
token[RW]
Public Class Methods
create(email, card_or_token)
click to toggle source
email should be a string card_or_token can be a Pin::Card
object or a card_token (as a string)
Calls superclass method
Pin::Base::create
# File lib/pin-payments/customer.rb, line 9 def create(email, card_or_token) options = if card_or_token.respond_to?(:to_hash) # card {card: card_or_token.to_hash} else # token {card_token: card_or_token} end.merge(email: email) super(options) end