Sha256: 5ac0b58483477e22afd90fd5ee31be3639caeac22c84818617a6db295302ba79

Contents?: true

Size: 686 Bytes

Versions: 4

Compression:

Stored size: 686 Bytes

Contents

module ShelbyArena

  class Search

    def self.search_for_contributions_by_date_range(start_date, end_date, page=1, per_page=100)
      options = {from_date: start_date, to_date: end_date, page_index: page, page_size: per_page}
      reader = ShelbyArena::ContributionListReader.new(options)
      ContributionList.new({reader: reader})
    end       

    def self.search_for_contributions_by_person(first_name, last_name, page=1, per_page=100)
      options = {first_name: first_name, last_name: last_name, page_index: page, page_size: per_page}
      reader = ShelbyArena::ContributionListReader.new(options)
      ContributionList.new({reader: reader})
    end       

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shelby-arena-api-0.3.2 lib/api/search.rb
shelby-arena-api-0.3.1 lib/api/search.rb
shelby-arena-api-0.3.0 lib/api/search.rb
shelby-arena-api-0.2.2 lib/api/search.rb