Module: DeckAPI::API::Cards
- Defined in:
- lib/deck-api/api.rb
Class Method Summary collapse
Class Method Details
.create(card) ⇒ Object
35 36 37 38 |
# File 'lib/deck-api/api.rb', line 35 def self.create(card) endpoint = endpoint(card.board_id, card.stack_id) CLIENT.post(endpoint, card.to_json) end |
.endpoint(board_id, stack_id) ⇒ Object
30 31 32 33 |
# File 'lib/deck-api/api.rb', line 30 def self.endpoint(board_id, stack_id) stack_endpoint = "#{Stacks.endpoint(board_id)}/#{stack_id}" "#{stack_endpoint}/cards" end |