Sha256: bb49b6e8c77353eae43d4ead28707783dcf912b57f32971ead61d89877789a67
Contents?: true
Size: 512 Bytes
Versions: 2
Compression:
Stored size: 512 Bytes
Contents
module SlidePay class AccountReport < PostReport def initialize(options={}) @url = "report/account" if options.is_a? String or options.is_a? Integer @sfa = [{field: "location_id", condition: "equals", value: options}] elsif options['location_id'] != nil or options[:location_id] != nil @sfa = [{field: "location_id", condition: "equals", value: options['location_id'] || options[:location_id]}] else @sfa = [] end super(@sfa) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slidepay-0.0.13 | lib/slidepay/reports/account_report.rb |
slidepay-0.0.12 | lib/slidepay/reports/account_report.rb |