def get_api_method(opt)
      case opt.class.to_s
      when "Symbol"
        api_method = api_methods.keys.include?(opt) ? api_methods[opt][:url] : (raise StandardError, "The parameter you sent is not available.")
      when "Hash"
        api_method = opt_from_hash(opt)
      else
        api_method = api_methods[:news][:url]
      end
    end
def get_api_method(opt)
      case opt.class.to_s
      when "Symbol"
        api_method = api_methods.keys.include?(opt) ? api_methods[opt][:url] : (raise StandardError, "The parameter you sent is not available.")
      when "Hash"
        api_method = opt_from_hash(opt)
      else
        api_method = api_methods[:news][:url]
      end
    end
Attempts to parse which EspnRb::Headline.api_methods the user has passed to
 method defined by EspnRb::Headline.create_headline_methods.

 @param [Hash] options the options passed in by user.
 @note This will accept either a string or a hash.

 @example Call with string
   get_api_method("news") #=> '/news'

 @example Call with Hash (for_date)
   get_api_method({:for_date => "2012-01-01"}) #=> '/news/dates/20120101'
 @option options [String] :arg When string is passed and :arg
   is available it will return the url associated with that :arg from EspnRb::Headline.api_methods
 @option options [Hash] :arg When Hash will pass :arg to opt_from_hash

 @return [String] a url entry from EspnRb::Headline.api_methods defaults to :news