lib/gocardless_pro/request.rb
# Fetch the body to send with the request
Fetch the body to send with the request
Fetch the body to send with the request
def request_body
      if @method == :get
        nil
      elsif %i[post put delete].include?(@method)
        @given_options.fetch(:params, {})
      else
        raise "Unknown request method #{@method}"
      end
    end
def request_body if @method == :get nil elsif %i[ post put delete ] . include? ( @method ) @given_options . fetch ( :params , { } ) else raise "Unknown request method #{@method}" end end
Fetch the body to send with the request
Fetch the body to send with the request