lib/finix/resources/payment_instrument.rb in finix-0.11 vs lib/finix/resources/payment_instrument.rb in finix-0.12

- old
+ new

@@ -9,10 +9,9 @@ class << self def hypermedia_subtype(response) unless response.nil? type = response['instrument_type'] || response['type'] name = self.name.sub! 'PaymentInstrument', 'PaymentCard' - self.instance_eval name if type == 'PAYMENT_CARD' name = self.name.sub! 'PaymentInstrument', 'PaymentCard' elsif type == 'BANK_ACCOUNT' name = self.name.sub! 'PaymentInstrument', 'BankAccount' end