Sha256: 169d125c0a86a4d471720d5096e592282d8aa91d914a1d49d95f410cf2700d7e

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

module Chargify
  class << self
    attr_accessor :subdomain, :api_key, :site, :format, :timeout

    def configure
      yield self

      Base.user      = api_key
      Base.password  = 'X'
      Base.timeout   = timeout unless (timeout.blank?)
      
      self.site ||= "https://#{subdomain}.chargify.com"
      Base.site = site
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chargify_api_ares-0.5.2 lib/chargify_api_ares/config.rb
chargify_api_ares-0.5.1 lib/chargify_api_ares/config.rb
chargify_api_ares-0.5.0 lib/chargify_api_ares/config.rb