Class: Mico::Member

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

Constant Summary collapse

URL =
"http://meurio.org.br/members.json"

Class Method Summary collapse

Class Method Details

.all(options = {}) ⇒ Object



8
9
10
# File 'lib/mico.rb', line 8

def self.all options = {}
  JSON.parse(HTTParty.get(URL, :query => {:token => ENV["MEURIO_TOKEN"]}.merge(options)).body)
end