Class: Yari::Scenario

Inherits:
Object
  • Object
show all
Defined in:
lib/yari/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_scenario) ⇒ Scenario

Returns a new instance of Scenario.



49
50
51
# File 'lib/yari/builder.rb', line 49

def initialize(raw_scenario)
  @raw = raw_scenario
end

Instance Attribute Details

#examplesObject (readonly)

Returns the value of attribute examples.



47
48
49
# File 'lib/yari/builder.rb', line 47

def examples
  @examples
end

#rawObject (readonly)

Returns the value of attribute raw.



47
48
49
# File 'lib/yari/builder.rb', line 47

def raw
  @raw
end

#stepsObject (readonly)

Returns the value of attribute steps.



47
48
49
# File 'lib/yari/builder.rb', line 47

def steps
  @steps
end

#tagsObject (readonly)

Returns the value of attribute tags.



47
48
49
# File 'lib/yari/builder.rb', line 47

def tags
  @tags
end

Instance Method Details

#locationObject



65
66
67
# File 'lib/yari/builder.rb', line 65

def location
  @raw[:location]
end

#nameObject



53
54
55
# File 'lib/yari/builder.rb', line 53

def name
  @raw[:name]
end

#typeObject



61
62
63
# File 'lib/yari/builder.rb', line 61

def type
  @raw[:type]
end