Skip to content

Comments

Ability to override fields#5

Open
unmanbearpig wants to merge 2 commits intofguillen:masterfrom
unmanbearpig:ability-to-override-fields
Open

Ability to override fields#5
unmanbearpig wants to merge 2 commits intofguillen:masterfrom
unmanbearpig:ability-to-override-fields

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