Class: Spree::PaymentCaptureEvent Private
- Defined in:
- app/models/spree/payment_capture_event.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #display_amount ⇒ Object private
Methods inherited from Base
display_includes, #initialize_preference_defaults, page, preference
Methods included from Spree::Preferences::Preferable
#default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference
Instance Method Details
#display_amount ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'app/models/spree/payment_capture_event.rb', line 5 def display_amount Spree::Money.new(amount, { currency: payment.currency }) end |