Method: Trello::Label#save
- Defined in:
- lib/trello/label.rb
#save ⇒ Object
Saves a record.
81 82 83 84 85 86 87 88 89 90 |
# File 'lib/trello/label.rb', line 81 def save # If we have an id, just update our fields. return update! if id from_response client.post("/labels", { name: name, color: color, idBoard: board_id, }) end |