Sha256: 48e94e7dca9cc49cb1c2d251ad2fe251a24b349c772fa7f7e36fbb73876e3505

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

module MM
  module Console
    class Transition
      def initialize(options)
        @command = options[:command]
        @card_number = options[:card_number]
        @properties = options[:properties]
        @comment = options[:comment]
      end
      
      def desc
        "#{@command} ##{@card_number}"
      end
      
      def execute(runtime)
        attrs = {:transition => @command, :card => @card_number, :properties => @properties, :comment => @comment}
        returning runtime[:api].create_transition_execution(attrs) do |str|
          MM::Console::Card.new(@card_number).execute(runtime)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xli-mm-0.0.3 lib/mm/console/transition.rb