Module: Dgr
- Defined in:
- lib/dgr.rb,
lib/dgr/version.rb
Constant Summary collapse
- VERSION =
"0.0.3.3"
Class Method Summary collapse
Class Method Details
.fetch(data_id, options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/dgr.rb', line 7 def self.fetch(data_id, = {}) fields = [:fields] selector = [:selector] limit = [:limit] skip = [:skip] group = [:group] segments = [:segments] response = RestClient.get "http://www.datagarage.io/api/#{data_id}", { :params => { :fields => fields, :selector => selector, :limit => limit, :skip => skip, :group => group, :segments => segments } } end |