Sha256: 469f0230a1dc61b8d891cfb635b6a26d7dd06ad80e73af351caa9f73fb06e814

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

require_relative "uploads"
require_relative "documents"

module OpenRecycling
  module Documents
    class Client < OpenRecycling::ModuleClient

      def documents
        @documents ||= OpenRecycling::Documents::Documents.new(
          base_url: module_url,
          jwt_token: jwt_token
        )
      end

      def uploads
        @uploads ||= OpenRecycling::Documents::Uploads.new(
          base_url: module_url,
          jwt_token: jwt_token
        )
      end

      private

      def module_url
        "#{base_url}/documents/v1"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
open_recycling-0.0.8 lib/open_recycling/documents/client.rb
open_recycling-0.0.7 lib/open_recycling/documents/client.rb
open_recycling-0.0.6 lib/open_recycling/documents/client.rb
open_recycling-0.0.5 lib/open_recycling/documents/client.rb
open_recycling-0.0.4 lib/open_recycling/documents/client.rb
open_recycling-0.0.3 lib/open_recycling/documents/client.rb