Class: Katagen::QuestionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/katagen/question_info.rb

Overview

Contains question info to create kata folder, can be extended further.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rootObject (readonly)

Returns the value of attribute root.



6
7
8
# File 'lib/katagen/question_info.rb', line 6

def root
  @root
end

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/katagen/question_info.rb', line 6

def url
  @url
end