Sha256: 56a15c55d1485bcb8623af5626163ffab0de3817929b6e8ebf34e6b0124c254f

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

# frozen_string_literal: true

module Kentaa
  module Api
    class Client
      def initialize(api_key, options = {})
        @request = Kentaa::Api::Request.new(api_key, options)
      end

      def actions
        Kentaa::Api::Requests::Actions.new(@request)
      end

      def donations
        Kentaa::Api::Requests::Donations.new(@request)
      end

      def newsletter_subscriptions
        Kentaa::Api::Requests::NewsletterSubscriptions.new(@request)
      end

      def projects
        Kentaa::Api::Requests::Projects.new(@request)
      end

      def segments
        Kentaa::Api::Requests::Segments.new(@request)
      end

      def sites
        Kentaa::Api::Requests::Sites.new(@request)
      end

      def teams
        Kentaa::Api::Requests::Teams.new(@request)
      end

      def users
        Kentaa::Api::Requests::Users.new(@request)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kentaa-api-0.1.1 lib/kentaa/api/client.rb