davidbiehl/ecwid_api

View on GitHub
lib/ecwid_api/api/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
module EcwidApi
  module Api
    # Internal: A base class for common API functionality
    class Base
      attr_reader :client
      private     :client

      # Public: Initializes a new EcwidApi::CategoryApi
      #
      # client - The EcwidApi::Client to use with the API
      #
      def initialize(client)
        @client = client
        raise Error.new("The client cannot be nil") unless client
      end
    end
  end
end