Sha256: 3e46836d801b4807a7ea3fa8ec5f0b1941abb8ab1bfaa72b10dbfbefae095f21

Contents?: true

Size: 250 Bytes

Versions: 13

Compression:

Stored size: 250 Bytes

Contents

module Zype
  class ApiClient < Zype::Client
    def initialize(auth_method = 'api_key')
      @headers = { 'Content-Type' => 'application/json' }.merge(authentication(auth_method))
      self.class.base_uri Zype.configuration.host
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zype-0.20.0 lib/zype/client/api_client.rb
zype-0.19.0 lib/zype/client/api_client.rb
zype-0.18.0 lib/zype/client/api_client.rb
zype-0.17.0 lib/zype/client/api_client.rb
zype-0.16.1 lib/zype/client/api_client.rb
zype-0.16.0 lib/zype/client/api_client.rb
zype-0.15.0 lib/zype/client/api_client.rb
zype-0.14.0 lib/zype/client/api_client.rb
zype-0.13.0 lib/zype/client/api_client.rb
zype-0.12.0 lib/zype/client/api_client.rb
zype-0.11.0 lib/zype/client/api_client.rb
zype-0.10.0 lib/zype/client/api_client.rb
zype-0.9.0 lib/zype/client/api_client.rb