Class: Krant::NewsItem Private
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Krant::NewsItem
- Defined in:
- app/models/krant/news_item.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #seen ⇒ Object private
- #template ⇒ Object private
Instance Method Summary collapse
- #seen? ⇒ Boolean private
- #text ⇒ Object private
- #title ⇒ Object private
- #unseen? ⇒ Boolean private
Instance Attribute Details
#seen ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'app/models/krant/news_item.rb', line 5 def seen @seen end |
#template ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 |
# File 'app/models/krant/news_item.rb', line 4 def template @template end |
Instance Method Details
#seen? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'app/models/krant/news_item.rb', line 19 def seen? seen end |
#text ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'app/models/krant/news_item.rb', line 11 def text translated_attribute('text') end |
#title ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'app/models/krant/news_item.rb', line 7 def title translated_attribute('title') end |
#unseen? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'app/models/krant/news_item.rb', line 15 def unseen? !seen end |