module HTTParty::ResponseExt

Public Instance Methods

esearch_request?() click to toggle source
# File lib/httparty/response_ext.rb, line 15
def esearch_request?
  request.path.to_s.match /esearch/
end
retmode() click to toggle source

Get the return mode from request.

# File lib/httparty/response_ext.rb, line 7
def retmode
  request.options[:query][:retmode]
end
xml?() click to toggle source
# File lib/httparty/response_ext.rb, line 11
def xml?
  retmode == :xml
end