Sha256: 92ff3ef8482bb2138dd71f945ad2540370f0d82a02fc601dab3dda6640498529

Contents?: true

Size: 888 Bytes

Versions: 8

Compression:

Stored size: 888 Bytes

Contents

module Ecoportal
  module API
    class Internal
      include Common::Logging
      attr_reader :client, :logger
      def initialize(api_key, host: "live.ecoportal.com", logger: default_logger)
        @logger = logger
        @client = Common::Client.new(
          api_key: api_key,
          host:    host,
          version: "v0",
          logger:  @logger
        )
      end
      def people
        Internal::People.new(client)
      end
      def person_schemas
        Internal::PersonSchemas.new(client)
      end
      def policy_groups
        Internal::PolicyGroups.new(client)
      end
      def login_providers
        Internal::LoginProviders.new(client)
      end
    end
  end
end

require 'ecoportal/api/internal/people'
require 'ecoportal/api/internal/person_schemas'
require 'ecoportal/api/internal/policy_groups'
require 'ecoportal/api/internal/login_providers'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecoportal-api-0.3.8 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.6 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.5 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.4 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.3 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.1 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.0 lib/ecoportal/api/internal.rb
ecoportal-api-0.3.0.pre1 lib/ecoportal/api/internal.rb