Sha256: 25cc38243e76a3da2f059c5ecafca4f4f82045edb93356c94d26e22899452138

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

module ShelbyArena

  class Search

    def self.search_for_contributions_by_date_range(start_date, end_date)
      options = {from_date: start_date, to_date: end_date}
      reader = ShelbyArena::ContributionListReader.new(options)
      ContributionList.new({reader: reader})
    end       

    def self.search_for_contributions_by_person(first_name, last_name)
      options = {first_name: first_name, last_name: last_name}
      reader = ShelbyArena::ContributionListReader.new(options)
      ContributionList.new({reader: reader})
    end       

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shelby-arena-api-0.2.1 lib/api/search.rb
shelby-arena-api-0.2.0 lib/api/search.rb