Class: Grackle::Handlers::XMLHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/grackle/handlers.rb

Overview

Decodes XML Twitter API responses

Constant Summary collapse

ARRAY_NODES =

Known nodes returned by twitter that contain arrays

['ids','statuses','users']

Instance Method Summary collapse

Instance Method Details

#decode_response(res) ⇒ Object



45
46
47
48
# File 'lib/grackle/handlers.rb', line 45

def decode_response(res)
  xml = REXML::Document.new(res)
  load_recursive(xml.root)
end