Class: SlidePay::AccountReport
- Inherits:
-
PostReport
- Object
- Hash
- Report
- PostReport
- SlidePay::AccountReport
- Defined in:
- lib/slidepay/reports/account_report.rb
Instance Attribute Summary
Attributes inherited from Report
#api_key, #endpoint, #report_type, #sfa, #token, #url
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AccountReport
constructor
A new instance of AccountReport.
Methods inherited from Report
Constructor Details
#initialize(options = {}) ⇒ AccountReport
Returns a new instance of AccountReport.
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/slidepay/reports/account_report.rb', line 3 def initialize(={}) @url = "report/account" if .is_a? String or .is_a? Integer @sfa = [{field: "location_id", condition: "equals", value: }] elsif ['location_id'] != nil or [:location_id] != nil @sfa = [{field: "location_id", condition: "equals", value: ['location_id'] || [:location_id]}] else @sfa = [] end super(@sfa) end |