Sha256: 6164c30c659ef93b42e33d980174f1f3a1058f3cc474c3e042a765548179044d

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

require 'singleton'

module Xhash
  class ApiClient
    include Xhash::JsonApi

    def self.config
      yield self
    end

    def self.api_base
      @api_base
    end

    def self.api_base=(api_base)
      @api_base = api_base
    end

    def self.api_key
      @api_key
    end

    def self.api_key=(api_key)
      @api_key = api_key
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xhash_client-0.3.5 lib/xhash/client/api_client.rb
xhash_client-0.3.4 lib/xhash/client/api_client.rb
xhash_client-0.3.3 lib/xhash/client/api_client.rb
xhash_client-0.3.2 lib/xhash/client/api_client.rb
xhash_client-0.3.1 lib/xhash/client/api_client.rb