lib/trello_wrapper.rb in trollolo-0.0.5 vs lib/trello_wrapper.rb in trollolo-0.0.6

- old
+ new

@@ -48,9 +48,14 @@ def organization(org_id) Trello::Organization.find(org_id) end + def add_attachment(card_id, filename) + card = Trello::Card.find(card_id) + card.add_attachment(File.open(filename, "rb")) + end + private def init_trello Trello.configure do |config| config.developer_public_key = @settings.developer_public_key