Sha256: e21f6bedcf654e756f85451637ee0a4fbfcd74bd17aa4a6d55f47f797bc75272

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

# DgrTest

A tool for data garage usage

## Installation

Add this line to your application's Gemfile:

    gem 'dgr_test'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install dgr_test

## Usage

### Fetch all data

* Argument
    * Data id(string)
* Return: json

    fetchAll('52e12d31203b41ab5d14964b')

### Fetch custom data

* Argument
    * Data id(string)
    * data(Object):
        * limit: You can limit the number of dataset which you wanna pull
        * fields: Select the fields you want to get, should be a string seperate by comma (for example: `Format, Valuie`, ...)
        * You could also skip the record you don't want( for example: `skip: 2`, that means the data will start from the 3)
        * selector : You can also select the data using greater, lesser, or equal ( for exmaple: `B Fmt=General`)

    fetchCustom('52e12d31203b41ab5d14964b', {'limit': '3'})

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dgr-0.0.2 README.md