Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to override fields #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

unmanbearpig
Copy link

Added ability to override .all and .find fields
Now you can specify fields you'd like to fetch with all method.
For example:

client.all(fields: ['id', 'name', 'addedDate'])
client.find(1, fields: ['id', 'name', 'addedDate'])

will fetch only id, name and added date.
It works the same as before if called without arguments

Now you can specify fields you'd like to fetch with all method.

For example:

```ruby
client.all(fields: ['id', 'name', 'addedDate'])
```
will fetch only id, name and added date.

It works the same as before if called without arguments
Also added get_torrents method that passes arguments to the Transmission
API directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant