Sha256: 9ebf0d53d7ba431dc89f10e2f674d482f228b42b1b8d4d836e425ccc97e6c12e

Contents?: true

Size: 444 Bytes

Versions: 7

Compression:

Stored size: 444 Bytes

Contents

module ShelbyArena

  class ContributionReader < ApiReader

    # Constructor.
    #
    # @param contribution_id (optional) The ID of the contribution to load.
    def initialize(contribution_id = nil)
      if contribution_id.nil?
        raise 'The create endpoint is not known yet.'
        @url_new_data_path = nil # Not sure yet
      else
        @url_data_path = "contribution/#{contribution_id}"
      end      
    end
    
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

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