Class: Wakoopa::Request

Inherits:
Object
  • Object
show all
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, options={})                                                                  
  response = HTTParty.get("http://api.wakoopa.com/#{Wakoopa.username}/#{section}.xml", options)
                         
  result = []
  response[section].each do |item|
    result << (Software.new(item))
  end
  result
end