Top Level Namespace

Defined Under Namespace

Modules: DgrTest

Instance Method Summary collapse

Instance Method Details

#fetchAll(dataId) ⇒ Object



3
4
5
6
# File 'lib/dgr_test.rb', line 3

def fetchAll(dataId)
    response = RestClient.get 'http://localhost:3000/api/' + dataId
    return response
end

#fetchCustom(dataId, form) ⇒ Object



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

def fetchCustom(dataId, form)
    response = RestClient.get 'http://localhost:3000/api/' + dataId, params = form
    return response
end