Class: Krant::NewsItem Private

Inherits:
ActiveRecord::Base
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#seenObject

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

#templateObject

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.

Returns:

  • (Boolean)


19
20
21
# File 'app/models/krant/news_item.rb', line 19

def seen?
  seen
end

#textObject

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

#titleObject

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.

Returns:

  • (Boolean)


15
16
17
# File 'app/models/krant/news_item.rb', line 15

def unseen?
  !seen
end