Class: Spree::PaymentMethodTransactionsReport::Result::Observation
- Inherits:
-
Report::TimedObservation
- Object
- Report::Observation
- Report::TimedObservation
- Spree::PaymentMethodTransactionsReport::Result::Observation
- Defined in:
- app/reports/spree/payment_method_transactions_report.rb
Instance Attribute Summary
Attributes inherited from Report::TimedObservation
#date, #hour, #reportable_keys
Instance Method Summary collapse
Methods inherited from Report::TimedObservation
#day_name, #hour_name, #initialize, #month_name, #to_h
Methods inherited from Report::Observation
build_from_hash, build_from_list, #initialize, observation_fields, #to_h
Constructor Details
This class inherits a constructor from Spree::Report::TimedObservation
Instance Method Details
#describes?(result, time_scale) ⇒ Boolean
27 28 29 |
# File 'app/reports/spree/payment_method_transactions_report.rb', line 27 def describes?(result, time_scale) (result['payment_method_name'] == payment_method_name) && super end |
#payment_amount ⇒ Object
31 32 33 |
# File 'app/reports/spree/payment_method_transactions_report.rb', line 31 def payment_amount @payment_amount.to_f end |