Sha256: 225a185b063087b8feef27b58601b8c3a0b575a27028f3c106b5d0b6daf948b0

Contents?: true

Size: 430 Bytes

Versions: 8

Compression:

Stored size: 430 Bytes

Contents

module FellowshipOne

  class ContributionReader < ApiReader

    # Constructor.
    #
    # @param contribution_id (optional) The ID of the contribution to load.
    def initialize(contribution_id = nil)
      if contribution_id.nil?
        @url_new_data_path = '/giving/v1/contributionreceipts/new'
      else
        @url_data_path = "/giving/v1/contributionreceipts/#{contribution_id}"
      end      
    end
    
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fellowshipone-api-0.9.0 lib/readers/contribution_reader.rb
fellowshipone-api-0.8.0 lib/readers/contribution_reader.rb
fellowshipone-api-0.7.0 lib/readers/contribution_reader.rb
fellowshipone-api-0.6.4 lib/readers/contribution_reader.rb
fellowshipone-api-0.6.3 lib/readers/contribution_reader.rb
fellowshipone-api-0.6.2 lib/readers/contribution_reader.rb
fellowshipone-api-0.6.1 lib/readers/contribution_reader.rb
fellowshipone-api-0.6.0 lib/readers/contribution_reader.rb