Sha256: c1f212b3186f781bf06e681a0d672294140addda66905b1577ebe566a3a162e2

Contents?: true

Size: 604 Bytes

Versions: 8

Compression:

Stored size: 604 Bytes

Contents

module Ecoportal
  module API
    class V1
      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: "v1",
          logger:  @logger
        )
      end
      def people
        V1::People.new(client)
      end
      def person_schemas
        V1::PersonSchemas.new(client)
      end
    end
  end
end

require 'ecoportal/api/v1/people'
require 'ecoportal/api/v1/person_schemas'

Version data entries

8 entries across 8 versions & 1 rubygems

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