Class: Mico::PetitionSignature

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

Class Method Summary collapse

Class Method Details

.find_all_by_issue_id(issue_id, options = {}) ⇒ Object



21
22
23
# File 'lib/mico.rb', line 21

def self.find_all_by_issue_id issue_id, options = {}
  JSON.parse(HTTParty.get("http://meurio.org.br/issues/#{issue_id}/signatures.json", :query => {:token => ENV["MEURIO_TOKEN"]}.merge(options)).body)
end