Module: Mumuki::Domain::Status::Discussion::Solved

Extended by:
Mumuki::Domain::Status::Discussion
Defined in:
lib/mumuki/domain/status/discussion/solved.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/solved.rb', line 12

def self.iconize
  {class: :success, type: 'check-circle'}
end

.reachable_statuses_for_moderatorObject



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

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

.requires_attention_for?(_) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/mumuki/domain/status/discussion/solved.rb', line 20

def self.requires_attention_for?(_)
  false
end

.should_be_shown?Boolean

Returns:

  • (Boolean)


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

def self.should_be_shown?(*)
  true
end

.solved?Boolean

Returns:

  • (Boolean)


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

def self.solved?
  true
end