Sha256: 5499c077aed16eba102ce8467e04c2e837f8ec0d7aa23d11a978468226353d0b

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

Stored size: 1.12 KB

Contents

module Ecoportal
  module API
    class Internal < V1
      include Common::Logging

      VERSION = "v0"
      class_resolver :people_class,  "Ecoportal::API::Internal::People"
      class_resolver :person_schemas_class,  "Ecoportal::API::Internal::PersonSchemas"

      class_resolver :policy_groups_class,  "Ecoportal::API::Internal::PolicyGroups"
      class_resolver :login_providers_class,  "Ecoportal::API::Internal::LoginProviders"

      # Obtain specific object for policy groups api requests.
      # @return [PolicyGroups] an instance object ready to make policy groups api requests.
      def policy_groups
        policy_groups_class.new(client)
      end

      # Obtain specific object for login providers api requests.
      # @return [LoginProviders] an instance object ready to make login providers api requests.
      def login_providers
        login_providers_class.new(client)
      end
    end
  end
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ecoportal-api-0.9.7 lib/ecoportal/api/internal.rb
ecoportal-api-0.9.6 lib/ecoportal/api/internal.rb
ecoportal-api-0.9.5 lib/ecoportal/api/internal.rb
ecoportal-api-0.9.4 lib/ecoportal/api/internal.rb
ecoportal-api-0.9.3 lib/ecoportal/api/internal.rb
ecoportal-api-0.9.2 lib/ecoportal/api/internal.rb