Class: Spree::PaymentMethodTransactionsConversionRateReport::Result::Observation
- Inherits:
-
Report::TimedObservation
- Object
- Report::Observation
- Report::TimedObservation
- Spree::PaymentMethodTransactionsConversionRateReport::Result::Observation
- Defined in:
- app/reports/spree/payment_method_transactions_conversion_rate_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
43 44 45 |
# File 'app/reports/spree/payment_method_transactions_conversion_rate_report.rb', line 43 def describes?(result, time_scale) (result['payment_method_name'] == payment_method_name && result['payment_state'] == @payment_state) && super end |
#payment_state ⇒ Object
35 36 37 38 39 40 41 |
# File 'app/reports/spree/payment_method_transactions_conversion_rate_report.rb', line 35 def payment_state if @payment_state == 'pending' @payment_state else "capturing #{ @payment_state }" end end |