Module: HTTParty::ResponseExt
- Defined in:
- lib/httparty/response_ext.rb
Instance Method Summary collapse
- #esearch_request? ⇒ Boolean
-
#retmode ⇒ Object
Get the return mode from request.
- #xml? ⇒ Boolean
Instance Method Details
#esearch_request? ⇒ Boolean
15 16 17 |
# File 'lib/httparty/response_ext.rb', line 15 def esearch_request? request.path.to_s.match /esearch/ end |
#retmode ⇒ Object
Get the return mode from request.
7 8 9 |
# File 'lib/httparty/response_ext.rb', line 7 def retmode request.[:query][:retmode] end |
#xml? ⇒ Boolean
11 12 13 |
# File 'lib/httparty/response_ext.rb', line 11 def xml? retmode == :xml end |