lib/billogram/request.rb in billogram-0.6.5 vs lib/billogram/request.rb in billogram-0.6.6

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Billogram class Request attr_reader :url, :type, :params def initialize(type, url, params = {}) @@ -18,10 +20,10 @@ {} end end def execute - response.success? ? response["data"] : raise_from(response) + response.success? ? response['data'] : raise_from(response) end def raise_from(response) raise Billogram::Error.from_response(response) end