Class: Thredded::NullUserTopicReadState

Inherits:
Object
  • Object
show all
Defined in:
app/models/thredded/null_user_topic_read_state.rb

Instance Method Summary collapse

Instance Method Details

#first_unread_post_pageObject



17
18
19
# File 'app/models/thredded/null_user_topic_read_state.rb', line 17

def first_unread_post_page
  nil
end

#last_read_post_pageObject



21
22
23
# File 'app/models/thredded/null_user_topic_read_state.rb', line 21

def last_read_post_page
  1
end

#pageObject



5
6
7
# File 'app/models/thredded/null_user_topic_read_state.rb', line 5

def page
  1
end

#post_read?(_post) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/models/thredded/null_user_topic_read_state.rb', line 13

def post_read?(_post)
  false
end

#read?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/models/thredded/null_user_topic_read_state.rb', line 9

def read?
  false
end