lib/finix/resources/payment_instrument.rb in finix-0.16 vs lib/finix/resources/payment_instrument.rb in finix-1.0.0
- old
+ new
@@ -9,12 +9,12 @@
class << self
def hypermedia_subtype(response)
unless response.nil?
type = response['instrument_type'] || response['type']
if type == 'PAYMENT_CARD'
- name = self.name.sub! 'PaymentInstrument', 'PaymentCard'
+ name = self.name.sub 'PaymentInstrument', 'PaymentCard'
elsif type == 'BANK_ACCOUNT'
- name = self.name.sub! 'PaymentInstrument', 'BankAccount'
+ name = self.name.sub 'PaymentInstrument', 'BankAccount'
end
return self.instance_eval name unless name.nil?
end
self
end