Class: Yari::Scenario
- Inherits:
-
Object
- Object
- Yari::Scenario
- Defined in:
- lib/yari/builder.rb
Instance Attribute Summary collapse
-
#examples ⇒ Object
readonly
Returns the value of attribute examples.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(raw_scenario) ⇒ Scenario
constructor
A new instance of Scenario.
- #location ⇒ Object
- #name ⇒ Object
- #type ⇒ Object
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
#examples ⇒ Object (readonly)
Returns the value of attribute examples.
47 48 49 |
# File 'lib/yari/builder.rb', line 47 def examples @examples end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
47 48 49 |
# File 'lib/yari/builder.rb', line 47 def raw @raw end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
47 48 49 |
# File 'lib/yari/builder.rb', line 47 def steps @steps end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
47 48 49 |
# File 'lib/yari/builder.rb', line 47 def @tags end |
Instance Method Details
#location ⇒ Object
65 66 67 |
# File 'lib/yari/builder.rb', line 65 def location @raw[:location] end |
#name ⇒ Object
53 54 55 |
# File 'lib/yari/builder.rb', line 53 def name @raw[:name] end |
#type ⇒ Object
61 62 63 |
# File 'lib/yari/builder.rb', line 61 def type @raw[:type] end |