Sha256: 7d9083c7c87c0f87840587d852b91e6faca88edfeb7ed7154fb88d3c6979ded7

Contents?: true

Size: 404 Bytes

Versions: 11

Compression:

Stored size: 404 Bytes

Contents

require 'turnip/node/base'
require 'turnip/node/step'

module Turnip
  module Node
    class ScenarioDefinition < Base
      def name
        @raw[:name]
      end

      def keyword
        @raw[:keyword]
      end

      def description
        @raw[:description]
      end

      def steps
        @steps ||= @raw[:steps].map do |step|
          Step.new(step)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
turnip-4.3.0 lib/turnip/node/scenario_definition.rb
turnip-4.2.0 lib/turnip/node/scenario_definition.rb
turnip-4.1.0 lib/turnip/node/scenario_definition.rb
turnip-4.0.1 lib/turnip/node/scenario_definition.rb
turnip-4.0.0 lib/turnip/node/scenario_definition.rb
turnip-3.1.0 lib/turnip/node/scenario_definition.rb
turnip-3.0.0 lib/turnip/node/scenario_definition.rb
turnip-3.0.0.pre.beta.5 lib/turnip/node/scenario_definition.rb
turnip-3.0.0.pre.beta.4 lib/turnip/node/scenario_definition.rb
turnip-3.0.0.pre.beta.3 lib/turnip/node/scenario_definition.rb
turnip-3.0.0.pre.beta.2 lib/turnip/node/scenario_definition.rb