lib/kickserv/http_utils/request.rb
# Format the Options before you send them off to Kickserv
Format the Options before you send them off to Kickserv
Format the Options before you send them off to Kickserv
def format_options(options)
        return if options.blank?
        opts = {}
        options.each do |key, _value|
          if key == :page
            opts[:page] = options[:page] if options.key?(:page)
          elsif key == :only
            opts[:only] = format_fields(options[:only]) if options.key?(:only)
          elsif key == :include
            opts[:include] = format_fields(options[:include]) if options.key?(:include)
          else
            opts[key] = options[key]
          end
        end
        opts
      end
def format_options ( options ) return if options . blank? opts = { } options . each do | key , _value | if key == :page opts [ :page ] = options [ :page ] if options . key? ( :page ) elsif key == :only opts [ :only ] = format_fields ( options [ :only ] ) if options . key? ( :only ) elsif key == :include opts [ :include ] = format_fields ( options [ :include ] ) if options . key? ( :include ) else opts [ key ] = options [ key ] end end opts end
Format the Options before you send them off to Kickserv
Format the Options before you send them off to Kickserv
options
<not_specific>