Class: TermUtils::AP::ArticleResult

Inherits:
Object
  • Object
show all
Defined in:
lib/term_utils/ap/result.rb

Overview

Represents a result for an article.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, article, value) ⇒ ArticleResult

Constructs a new ArticleResult.

Parameters:



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

#articleArticle

Returns:



144
145
146
# File 'lib/term_utils/ap/result.rb', line 144

def article
  @article
end

#parentParameterResult

Returns:



142
143
144
# File 'lib/term_utils/ap/result.rb', line 142

def parent
  @parent
end

#valueObject

Returns:

  • (Object)


146
147
148
# File 'lib/term_utils/ap/result.rb', line 146

def value
  @value
end

Instance Method Details

#art_idSymbol

Returns:

  • (Symbol)


160
161
162
# File 'lib/term_utils/ap/result.rb', line 160

def art_id
  @article.id
end