Class: Katagen::QuestionInfo
- Inherits:
-
Object
- Object
- Katagen::QuestionInfo
- Defined in:
- lib/katagen/question_info.rb
Overview
Contains question info to create kata folder, can be extended further.
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(root, url) ⇒ QuestionInfo
constructor
A new instance of QuestionInfo.
Constructor Details
#initialize(root, url) ⇒ QuestionInfo
Returns a new instance of QuestionInfo.
7 8 9 10 |
# File 'lib/katagen/question_info.rb', line 7 def initialize(root, url) @root = root @url = url end |
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
6 7 8 |
# File 'lib/katagen/question_info.rb', line 6 def root @root end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/katagen/question_info.rb', line 6 def url @url end |