Sha256: 7df673ba1352ead099b924f4cf674349cb9e2fe60c96e7620ff1dbee3760c81a

Contents?: true

Size: 452 Bytes

Versions: 7

Compression:

Stored size: 452 Bytes

Contents

module TrelloCli
  module Requests
    class CreateCard

      include Shared

      def initialize
        connect_to_trello
      end

      def create(args)
        card = Trello::Card.new 'name'    => args[:name],
                                'desc'    => args[:description],
                                'idBoard' => args[:board_id],
                                'idList'  => args[:list_id]
        card.save
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trello_cli-0.2.1 lib/trello_cli/requests/create_card.rb
trello_cli-0.2.0 lib/trello_cli/requests/create_card.rb
trello_cli-0.1.0 lib/trello_cli/requests/create_card.rb
trello_cli-0.0.4 lib/trello_cli/requests/create_card.rb
trello_cli-0.0.3 lib/trello_cli/requests/create_card.rb
trello_cli-0.0.2 lib/trello_cli/requests/create_card.rb
trello_cli-0.0.1 lib/trello_cli/requests/create_card.rb