Sha256: 5d8c7548a6ac92f18712b395fc163babe258b0e8fbf3b1fc0e12a57c6f77b75c

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 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

    def self.timeout
      @timeout
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xhash_client-0.3.7 lib/xhash/client/api_client.rb
xhash_client-0.3.6 lib/xhash/client/api_client.rb