Class: FlickrParty::FlickrParser
- Inherits:
-
HTTParty::Parser
- Object
- HTTParty::Parser
- FlickrParty::FlickrParser
- Defined in:
- lib/flickr_party/parser.rb
Instance Method Summary collapse
Instance Method Details
#xml ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/flickr_party/parser.rb', line 3 def xml super['rsp'].tap do |result| if result['photos'] # eliminate the redundant key names result['photos'] = result['photos'].delete('photo') end end end |