Class: Euclid::Alert
- Inherits:
-
Object
- Object
- Euclid::Alert
- Defined in:
- lib/euclid/alert.rb
Class Method Summary collapse
Class Method Details
.get_alerts(credential, args) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/euclid/alert.rb', line 4 def self.get_alerts(credential, args) url = "https://store.euclidelements.com/shoppers.json?&credential=" + credential if args.length > 0 args.each do |k,v| url += "&#{k}=#{v}" end end p url JSON.parse(RestClient.get(url)) end |