Class: Munificent::BundlePresenter
- Inherits:
-
Admin::ApplicationPresenter
- Object
- ActionView::Base
- Admin::ApplicationPresenter
- Munificent::BundlePresenter
- Defined in:
- app/presenters/munificent/bundle_presenter.rb
Instance Attribute Summary
Attributes inherited from Admin::ApplicationPresenter
Instance Method Summary collapse
Methods inherited from Admin::ApplicationPresenter
delegate, #initialize, #name, present, presenter_class_for
Constructor Details
This class inherits a constructor from Munificent::Admin::ApplicationPresenter
Instance Method Details
#price ⇒ Object
17 18 19 |
# File 'app/presenters/munificent/bundle_presenter.rb', line 17 def price record.highest_tier&.human_price(symbol: true) end |
#state ⇒ Object
21 22 23 24 25 |
# File 'app/presenters/munificent/bundle_presenter.rb', line 21 def state tag.span(class: "badge text-bg-#{record.live? ? 'success' : 'secondary'}") do record.state.humanize end end |