Class: Wakoopa::Request
- Inherits:
-
Object
- Object
- Wakoopa::Request
- Defined in:
- lib/wakoopa.rb
Class Method Summary collapse
Class Method Details
.get(section, options = {}) ⇒ Object
61 62 63 64 65 66 67 68 69 |
# File 'lib/wakoopa.rb', line 61 def get(section, ={}) response = HTTParty.get("http://api.wakoopa.com/#{Wakoopa.username}/#{section}.xml", ) result = [] response[section].each do |item| result << (Software.new(item)) end result end |