lib/d2d/client/session.rb
def base_options
        aid = @patron && @patron.aid
        keepers = %i[library_symbol partnership_id]
        # .slice is available in 2.5, but ...
        @config.to_h.select { |k, _| keepers.include?(k) }
               .merge(aid: aid).dup
      end
# extract base options from configuration and patron
extract base options from configuration and patron
extract base options from configuration and patron
def base_options
        aid = @patron && @patron.aid
        keepers = %i[library_symbol partnership_id]
        @config.to_h.select { |k, _| keepers.include?(k) }
               .merge(aid: aid).dup
      end
def base_options aid = @patron && @patron . aid keepers = %i[ library_symbol partnership_id ] @config . to_h . select { | k , _ | keepers . include? ( k ) } . merge ( aid : aid ) . dup end
extract base options from configuration and patron
extract base options from configuration and patron
# .slice is available in 2.5, but ...