Sha256: eb3f263ef08502ff6920deda344f78f243b197faca7e1ea5eafaaf0327024f2d
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
module ShelbyArena class ContributionListReader < ApiReader # Constructor. # # Options: # :person_id - (optional) search for receipts containing the PersonId that is passed with this parameter. # :start_date - (optional) search for receipts with a received date greater than or equal to this parameter. # :end_date - (optional) search for receipts with a received date less than or equal to this parameter. def initialize(options = {}) # page = options[:page] || 1 # per_page = options[:per_page] || 100 @url_data_params = {} valid_fields.each { |field| @url_data_params[field] = options[ShelbyArena::attr_underscore(field).to_sym] unless options[ShelbyArena::attr_underscore(field).to_sym].nil? } @url_data_path = 'contribution/list' end def valid_fields %W(FirstName LastName FromDate ToDate TypeFilter FundFilter ProjectFilter Transaction SortExpression).sort end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shelby-arena-api-0.2.1 | lib/readers/contribution_list_reader.rb |
shelby-arena-api-0.2.0 | lib/readers/contribution_list_reader.rb |