Class: ContentBlockTools::Presenters::BlockPresenters::Contact::ContactFormPresenter

Inherits:
BasePresenter
  • Object
show all
Includes:
BlockLevelContactItem
Defined in:
lib/content_block_tools/presenters/block_presenters/contact/contact_form_presenter.rb

Constant Summary

Constants included from BlockLevelContactItem

BlockLevelContactItem::BASE_TAG_TYPE

Constants inherited from BasePresenter

BasePresenter::BASE_TAG_TYPE

Instance Attribute Summary

Attributes inherited from BasePresenter

#item

Instance Method Summary collapse

Methods included from BlockLevelContactItem

#initialize, #wrapper

Methods inherited from BasePresenter

#initialize

Instance Method Details

#renderObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/content_block_tools/presenters/block_presenters/contact/contact_form_presenter.rb', line 10

def render
  wrapper do
    (:p) do
      concat (:span, item[:title])
      concat (:a,
                         item[:url],
                         class: "url",
                         href: item[:url])
    end
  end
end