lib/bunq/qr_code_content.rb in bunq-client-0.7.2 vs lib/bunq/qr_code_content.rb in bunq-client-1.0.0
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
module Bunq
class QrCodeContent
def initialize(parent_resource)
- @resource = parent_resource.append("/qr-code-content")
+ @resource = parent_resource.append('/qr-code-content')
end
def show
- @resource.with_session do
- @resource.get { |response| response.body }
+ @resource.with_session do
+ @resource.get(&:body)
end
end
end
end