Class: Smartdown::Parser::InputSet
- Inherits:
-
Object
- Object
- Smartdown::Parser::InputSet
- Defined in:
- lib/smartdown/parser/input_set.rb
Instance Attribute Summary collapse
-
#coversheet ⇒ Object
readonly
Returns the value of attribute coversheet.
-
#outcomes ⇒ Object
readonly
Returns the value of attribute outcomes.
-
#questions ⇒ Object
readonly
Returns the value of attribute questions.
-
#scenarios ⇒ Object
readonly
Returns the value of attribute scenarios.
-
#snippets ⇒ Object
readonly
Returns the value of attribute snippets.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ InputSet
constructor
A new instance of InputSet.
Constructor Details
#initialize(params = {}) ⇒ InputSet
Returns a new instance of InputSet.
6 7 8 9 10 11 12 |
# File 'lib/smartdown/parser/input_set.rb', line 6 def initialize(params = {}) @coversheet = params[:coversheet] @questions = params[:questions] @outcomes = params[:outcomes] @snippets = params[:snippets] @scenarios = params[:scenarios] end |
Instance Attribute Details
#coversheet ⇒ Object (readonly)
Returns the value of attribute coversheet.
4 5 6 |
# File 'lib/smartdown/parser/input_set.rb', line 4 def coversheet @coversheet end |
#outcomes ⇒ Object (readonly)
Returns the value of attribute outcomes.
4 5 6 |
# File 'lib/smartdown/parser/input_set.rb', line 4 def outcomes @outcomes end |
#questions ⇒ Object (readonly)
Returns the value of attribute questions.
4 5 6 |
# File 'lib/smartdown/parser/input_set.rb', line 4 def questions @questions end |
#scenarios ⇒ Object (readonly)
Returns the value of attribute scenarios.
4 5 6 |
# File 'lib/smartdown/parser/input_set.rb', line 4 def scenarios @scenarios end |
#snippets ⇒ Object (readonly)
Returns the value of attribute snippets.
4 5 6 |
# File 'lib/smartdown/parser/input_set.rb', line 4 def snippets @snippets end |