lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-0.18.0 vs lib/telegram/bot/exceptions/response_error.rb in telegram-bot-ruby-0.19.0

- old
+ new

@@ -1,12 +1,15 @@ +# frozen_string_literal: true + module Telegram module Bot module Exceptions class ResponseError < Base attr_reader :response def initialize(response) @response = response + super end def to_s super + format(' (%s)', data.map { |k, v| %(#{k}: "#{v}") }.join(', '))