Sha256: be3a0a8d067ce725a89c5b04c7bca5d9b8c9bc588e7681dbb7830d1f784e7fd4
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 Bytes
Contents
module Govspeak class AttachmentImagePresenter attr_reader :attachment def initialize(attachment) @attachment = AttachmentPresenter.new(attachment) end def url attachment.url end def alt_text (attachment.title || "").tr("\n", " ") end def caption nil end def id attachment.id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govspeak-5.8.0 | lib/govspeak/presenters/attachment_image_presenter.rb |