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

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

Constant Summary

Constants inherited from BasePresenter

BasePresenter::BASE_TAG_TYPE

Instance Attribute Summary

Attributes inherited from BasePresenter

#item

Instance Method Summary collapse

Methods inherited from BasePresenter

#initialize

Constructor Details

This class inherits a constructor from ContentBlockTools::Presenters::BlockPresenters::BasePresenter

Instance Method Details

#renderObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/content_block_tools/presenters/block_presenters/contact/contact_form_presenter.rb', line 6

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