Class: TermUtils::AP::ArticleResult
- Inherits:
-
Object
- Object
- TermUtils::AP::ArticleResult
- Defined in:
- lib/term_utils/ap/result.rb
Overview
Represents a result for an article.
Instance Attribute Summary collapse
Instance Method Summary collapse
- #art_id ⇒ Symbol
-
#initialize(parent, article, value) ⇒ ArticleResult
constructor
Constructs a new ArticleResult.
Constructor Details
#initialize(parent, article, value) ⇒ ArticleResult
Constructs a new ArticleResult.
152 153 154 155 156 157 |
# File 'lib/term_utils/ap/result.rb', line 152 def initialize(parent, article, value) @parent = parent @parent.add_result(self) @article = article @value = value end |
Instance Attribute Details
#article ⇒ Article
144 145 146 |
# File 'lib/term_utils/ap/result.rb', line 144 def article @article end |
#parent ⇒ ParameterResult
142 143 144 |
# File 'lib/term_utils/ap/result.rb', line 142 def parent @parent end |
#value ⇒ Object
146 147 148 |
# File 'lib/term_utils/ap/result.rb', line 146 def value @value end |
Instance Method Details
#art_id ⇒ Symbol
160 161 162 |
# File 'lib/term_utils/ap/result.rb', line 160 def art_id @article.id end |