lib/braintree/visa_checkout_card.rb in braintree-3.3.0 vs lib/braintree/visa_checkout_card.rb in braintree-3.4.0
- old
+ new
@@ -37,11 +37,11 @@
@subscriptions = (@subscriptions || []).map { |subscription_hash| Subscription._new(@gateway, subscription_hash) }
@verification = _most_recent_verification(attributes)
end
def _most_recent_verification(attributes)
- verification = (attributes[:verifications] || []).sort_by{ |verification| verification[:created_at] }.reverse.first
+ verification = (attributes[:verifications] || []).sort_by { |verification| verification[:created_at] }.reverse.first
CreditCardVerification._new(verification) if verification
end
def default?
@default
@@ -82,9 +82,9 @@
:country_of_issuance, :issuing_bank, :image_url, :call_id
]
end
def self._new(*args) # :nodoc:
- self.new *args
+ self.new(*args)
end
end
end