Class: OneRuby::Client

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

Class Method Summary collapse

Class Method Details

.get(path) ⇒ Object



6
7
8
9
10
# File 'lib/one_ruby/client.rb', line 6

def self.get(path)
  results = RestClient.get OneRuby::ROOT_URL + path + '?limit=2000',
                           { Authorization: "Bearer #{OneRuby.api_key}" }
  JSON.parse(results)
end