Sha256: e7332fa363dc3881dbda6cd2d1159f4896a828af6628facec6778987bbc23c7b

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

require "ltp/cloud/sdk/version"
require 'ltp/cloud/sdk/client'

module Ltp
  module Cloud
    module Sdk
      class << self
        attr_accessor :api_key

        def configure
          yield self if block_given?
        end

        def client
          @client ||= Client.with(api_key)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ltp-cloud-sdk-0.1.1 lib/ltp/cloud/sdk.rb
ltp-cloud-sdk-0.1.0 lib/ltp/cloud/sdk.rb