Class: ArticleDataGetter
- Inherits:
-
DataGetter
- Object
- DataGetter
- ArticleDataGetter
- Defined in:
- lib/contentar/data_getters/article.rb
Constant Summary
Constants inherited from DataGetter
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Attributes inherited from DataGetter
#api_call, #headers, #processor, #url, #values
Instance Method Summary collapse
-
#initialize(content) ⇒ ArticleDataGetter
constructor
A new instance of ArticleDataGetter.
Methods inherited from DataGetter
Constructor Details
#initialize(content) ⇒ ArticleDataGetter
Returns a new instance of ArticleDataGetter.
4 5 6 7 8 9 10 |
# File 'lib/contentar/data_getters/article.rb', line 4 def initialize(content) @content = content @processor = ContentDataProcessor.new @api_call = 'article' @values = article_values super end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
2 3 4 |
# File 'lib/contentar/data_getters/article.rb', line 2 def content @content end |