Sha256: c6ad7f8cebe5c2e1ab28992d814df98418aa919ab4cf4671fa38e13a30e5563c

Contents?: true

Size: 731 Bytes

Versions: 1

Compression:

Stored size: 731 Bytes

Contents

require 'dmao_api'
require 'dmao/ingesters/generic/ingester'
require 'dmao/ingesters/errors/ingest_funder_error'

module DMAO
  module Ingesters
    module Generic

      class FundersIngester< Ingester

        ENTITY = DMAO::API::Funder
        ENTITY_ERROR = DMAO::Ingesters::Errors::IngestFunderError
        INVALID_ENTITY_ERROR = DMAO::API::Errors::InvalidFunder
        ENTITY_ERROR_MESSAGE = "Invalid funder details"

        def ingest_funder attributes={}
          ingest_entity attributes
        end

        private

        def add_funder attributes
          add_entity attributes
        end

        def update_funder id, attributes
          update_entity id, attributes
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dmao-generic-ingesters-0.4.0 lib/dmao/ingesters/generic/funders_ingester.rb