Module: Mumuki::Domain::Status::Discussion::PendingReview

Extended by:
Mumuki::Domain::Status::Discussion
Defined in:
lib/mumuki/domain/status/discussion/pending_review.rb

Constant Summary

Constants included from Mumuki::Domain::Status::Discussion

STATUSES

Class Method Summary collapse

Methods included from Mumuki::Domain::Status::Discussion

reachable_statuses_for, reachable_statuses_for_initiator, reachable_statuses_for_moderator, should_be_shown?

Methods included from Mumuki::Domain::Status

#==, #as_json, #dup, #to_i, #to_s, #to_sym

Class Method Details

.iconizeObject



12
13
14
# File 'lib/mumuki/domain/status/discussion/pending_review.rb', line 12

def self.iconize
  {class: :info, type: 'hourglass'}
end

.pending_review?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/mumuki/domain/status/discussion/pending_review.rb', line 4

def self.pending_review?
  true
end

.reachable_statuses_for_moderatorObject



8
9
10
# File 'lib/mumuki/domain/status/discussion/pending_review.rb', line 8

def self.reachable_statuses_for_moderator(*)
  [Mumuki::Domain::Status::Discussion::Opened, Mumuki::Domain::Status::Discussion::Closed, Mumuki::Domain::Status::Discussion::Solved]
end

.requires_attention_for?(_) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/mumuki/domain/status/discussion/pending_review.rb', line 16

def self.requires_attention_for?(_)
  true
end