Class: Munificent::BundleTierPresenter
- Inherits:
-
Admin::ApplicationPresenter
- Object
- ActionView::Base
- Admin::ApplicationPresenter
- Munificent::BundleTierPresenter
- Defined in:
- app/presenters/munificent/bundle_tier_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
#games ⇒ Object
16 17 18 |
# File 'app/presenters/munificent/bundle_tier_presenter.rb', line 16 def games record.bundle_tier_games.map(&:game).map(&:name).join(", ") end |
#price ⇒ Object
12 13 14 |
# File 'app/presenters/munificent/bundle_tier_presenter.rb', line 12 def price record.human_price(symbol: true) end |