Sha256: dfb8f12cbb5e7ba891197056537092b79214b2e437608bc78722d1dede98507a

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

require_relative "apps/client"
require_relative "org/client"
require_relative "core/client"
require_relative "documents/client"

module OpenRecycling
  class Client < OpenRecycling::ModuleClient

    def apps
      @apps ||= OpenRecycling::Apps::Client.new(
        base_url: base_url,
        jwt_token: jwt_token
      )
    end

    def org
      @org ||= OpenRecycling::Org::Client.new(
        base_url: base_url,
        jwt_token: jwt_token
      )
    end

    def core
      @core ||= OpenRecycling::Core::Client.new(
        base_url: base_url,
        jwt_token: jwt_token
      )
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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