module DeckAPI::API::Cards
Public Class Methods
create(card)
click to toggle source
# 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)
click to toggle source
# 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