Class: Decidim::Elections::TrusteePresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
decidim-elections/app/presenters/decidim/elections/trustee_presenter.rb

Overview

Decorator for trustee

Instance Method Summary collapse

Instance Method Details

#public_key_thumbprintObject


13
14
15
# File 'decidim-elections/app/presenters/decidim/elections/trustee_presenter.rb', line 13

def public_key_thumbprint
  @public_key_thumbprint ||= jwk_thumbprint(JSON.parse(trustee.public_key)) if trustee.public_key.present?
end

#trusteeObject


9
10
11
# File 'decidim-elections/app/presenters/decidim/elections/trustee_presenter.rb', line 9

def trustee
  __getobj__
end