lib/tops_connect/client.rb in tops_connect-0.4.2 vs lib/tops_connect/client.rb in tops_connect-0.4.2.1
- old
+ new
@@ -59,10 +59,11 @@
def initialize(response)
@response = response
end
def to_s
- '%{code}: %{message} (%{uri})'.format(
+ format(
+ '%{code}: %{message} (%{uri})',
code: @response.code,
message: @response.parsed_response&.dig('Message'),
uri: @response.request.last_uri.to_s
)
end