lib/bunq/certificate_pinned.rb in bunq-client-0.7.2 vs lib/bunq/certificate_pinned.rb in bunq-client-1.0.0

- old
+ new

@@ -1,21 +1,25 @@ +# frozen_string_literal: true + module Bunq ## # https://doc.bunq.com/api/1/call/certificate-pinned class CertificatePinned def initialize(parent_resource) - @resource = parent_resource.append("/certificate-pinned") + @resource = parent_resource.append('/certificate-pinned') end ## # https://doc.bunq.com/api/1/call/certificate-pinned/method/post def create(pem_certificate) @resource.with_session do - @resource.post({ - certificate_chain: [ - {certificate: pem_certificate} - ] - }) + @resource.post( + { + certificate_chain: [ + {certificate: pem_certificate}, + ], + }, + ) end end end end