ruby-trello
ruby-trello copied to clipboard
More “ruby-like” API?
Thank you for developing ruby-trello. While building a relatively simple app that synchronizes data between trello and an external source bidirectionally, I’ve run into a number of snags due to documentation being very limited, but also because the API in many cases did not “feel” how I expected it to.
For example, it would be nice if I could just card.labels << some_label, or some_list.add_card some_card, pos: 'top' (instead of passing list_id manually). Or even some_list << some_card.
I also ran into some issues where cards would not update despite calling .save and getting a 200 OK response that I haven’t been able to get to the bottom of, as well as unexpected HTTP calls (e.g. when adding a label - the mental model for cards is that local data will be updated and I call .save manually, but .add_label does modify the card directly). It would be helpful if the mental model was consistent, i.e. either all changes are live or all changes are deferred?