Class: Spree::Filters::PricePresenter
- Inherits:
-
Object
- Object
- Spree::Filters::PricePresenter
- Defined in:
- app/presenters/spree/filters/price_presenter.rb
Instance Method Summary collapse
-
#initialize(amount:, currency:) ⇒ PricePresenter
constructor
A new instance of PricePresenter.
- #to_i ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(amount:, currency:) ⇒ PricePresenter
Returns a new instance of PricePresenter.
4 5 6 7 |
# File 'app/presenters/spree/filters/price_presenter.rb', line 4 def initialize(amount:, currency:) @amount = amount.to_i @currency = currency end |
Instance Method Details
#to_i ⇒ Object
9 10 11 |
# File 'app/presenters/spree/filters/price_presenter.rb', line 9 def to_i amount end |