Sha256: d8374d8453e55f17c989540e0c86d144f1a944851228c38b81ba0c93312962da

Contents?: true

Size: 634 Bytes

Versions: 7

Compression:

Stored size: 634 Bytes

Contents

module ShelbyArena

  class FundListReader < ApiReader

    # Constructor.
    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 = 'fund/list'
    end

    def valid_fields
      %W(Active
         CanPledge
         EndDate
         FundId
         FundName
         OnlineName
         StartDate
         TaxDeductible).sort
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shelby-arena-api-0.3.2 lib/readers/fund_list_reader.rb
shelby-arena-api-0.3.1 lib/readers/fund_list_reader.rb
shelby-arena-api-0.3.0 lib/readers/fund_list_reader.rb
shelby-arena-api-0.2.2 lib/readers/fund_list_reader.rb
shelby-arena-api-0.2.1 lib/readers/fund_list_reader.rb
shelby-arena-api-0.2.0 lib/readers/fund_list_reader.rb
shelby-arena-api-0.1.0 lib/readers/fund_list_reader.rb