Module: BlossomApi::Project::Card
- Included in:
- BlossomApi::Project
- Defined in:
- lib/blossom_api/project/card.rb
Instance Method Summary collapse
Instance Method Details
#create_card(title, description) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/blossom_api/project/card.rb', line 5 def create_card(title, description) title_response = post_card_title(title) if title_response.code == 200 description_response = patch_card_description(title_response['id'], description) if description_response.code == 200 return description_response['id'] else return false end else return false end end |
#update_card(id, title, description) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/blossom_api/project/card.rb', line 19 def update_card(id, title, description) response = patch_card(id, title, description) if response.code == 200 return true else return false end end |