Sha256: 67e5c1cd02eace7b4f7ebfeb3e7854a7438a9d54aec6aa54871cfa20c8c3abee

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

require_relative "organizations"
require_relative "applications"

module OpenRecycling
  module Org
    class Client < OpenRecycling::ModuleClient
      def organizations
        @organizations ||= OpenRecycling::Org::Organizations.new(
          base_url: module_url,
          jwt_token: jwt_token
        )
      end

      def applications
        @applications ||= OpenRecycling::Org::Applications.new(
          base_url: module_url,
          jwt_token: jwt_token
        )
      end

      private

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
open_recycling-0.0.2 lib/open_recycling/org/client.rb
open_recycling-0.0.1 lib/open_recycling/org/client.rb