Module: Pandora::Request
- Included in:
- User
- Defined in:
- lib/pandora/request.rb
Overview
The Request starts here with parsing the method call from 'user' and Nokogiri processing the XML file.
Constant Summary collapse
- BASE_FEED =
The link to the Pandora XML files used throughout
"http://feeds.pandora.com/feeds/people/"
Instance Method Summary collapse
-
#request(user, method) ⇒ Object
The 'user' can only be a public user on pandora, who hasn't set listening activity to private.
Instance Method Details
#request(user, method) ⇒ Object
The 'user' can only be a public user on pandora, who hasn't set listening activity to private. The method comes from user requests. [String, String]
16 17 18 |
# File 'lib/pandora/request.rb', line 16 def request(user, method) doc = Nokogiri::XML(open("#{BASE_FEED}#{user}/#{method}.xml")) end |