Class: Spree::SalesTaxReport::Result::Observation
- Inherits:
-
Report::TimedObservation
- Object
- Report::Observation
- Report::TimedObservation
- Spree::SalesTaxReport::Result::Observation
- Defined in:
- app/reports/spree/sales_tax_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
26 27 28 |
# File 'app/reports/spree/sales_tax_report.rb', line 26 def describes?(result, time_scale) (zone_name == result['zone_name']) && super end |
#sales_tax ⇒ Object
30 31 32 |
# File 'app/reports/spree/sales_tax_report.rb', line 30 def sales_tax @sales_tax.to_f end |