Sha256: bb5f5d37aee23e66a780dfea336b6605725777be906149bd494ad4740ca92c64

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    module Clients
      class Donations < Base
        include Kentaa::Api::Clients::All

        def list(options = {})
          donations = Kentaa::Api::Resources::Donations.new(config, options)
          donations.load
        end

        def get(id, options = {})
          donation = Kentaa::Api::Resources::Donation.new(config, options.merge(id: id))
          donation.load
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kentaa-api-0.3.2 lib/kentaa/api/clients/donations.rb
kentaa-api-0.3.1 lib/kentaa/api/clients/donations.rb
kentaa-api-0.3.0 lib/kentaa/api/clients/donations.rb