Sha256: 066e68b13da3667a15eb6f380960f3f8747065a96fc3790220ccce0a11de07f5

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

require 'waeasyapi/errors'
require 'waeasyapi/message'
require 'waeasyapi/utility'
require 'waeasyapi/constants'
require 'waeasyapi/collection'

# Base WAEasyAPI module
module WAEasyAPI
  class << self
    attr_accessor :auth, :custom_headers
  end

  def self.setup(key_id, key_secret)
    self.auth = { username: key_id, password: key_secret }
  end

  def self.headers=(headers = {})
    self.custom_headers = headers
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waeasyapi-1.0.0 lib/waeasyapi.rb