Class: Decidim::OfficialAuthorPresenter

Inherits:
Object
  • Object
show all
Defined in:
decidim-core/app/presenters/decidim/official_author_presenter.rb

Overview

A dummy presenter to abstract out the author of an official resource.

Instance Method Summary collapse

Instance Method Details

#avatar_url(_variant = nil) ⇒ Object


20
21
22
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 20

def avatar_url(_variant = nil)
  ActionController::Base.helpers.asset_pack_path("media/images/default-avatar.svg")
end

#badgeObject


12
13
14
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 12

def badge
  ""
end

#can_be_contacted?Boolean

Returns:

  • (Boolean)

28
29
30
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 28

def can_be_contacted?
  false
end

#deleted?Boolean

Returns:

  • (Boolean)

24
25
26
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 24

def deleted?
  false
end

#has_tooltip?Boolean

Returns:

  • (Boolean)

32
33
34
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 32

def has_tooltip?
  false
end

#nicknameObject


8
9
10
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 8

def nickname
  ""
end

#profile_pathObject


16
17
18
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 16

def profile_path
  ""
end