Class: QiitaScouter::Article
- Inherits:
-
Object
- Object
- QiitaScouter::Article
- Defined in:
- lib/models/article.rb
Overview
QiitaScouter::Article
Instance Attribute Summary collapse
-
#likes_count ⇒ Object
Returns the value of attribute likes_count.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Article
constructor
A new instance of Article.
Constructor Details
#initialize(options = {}) ⇒ Article
Returns a new instance of Article.
6 7 8 9 |
# File 'lib/models/article.rb', line 6 def initialize( = {}) @tags = ['tags'].map { |e|e['name'] } @likes_count = ['likes_count'] end |
Instance Attribute Details
#likes_count ⇒ Object
Returns the value of attribute likes_count.
4 5 6 |
# File 'lib/models/article.rb', line 4 def likes_count @likes_count end |
#tags ⇒ Object
Returns the value of attribute tags.
4 5 6 |
# File 'lib/models/article.rb', line 4 def @tags end |