Sha256: 95612a76d2ac8e095d165945a393804896cacdf6e2383f9eb1aca07ea04746a8
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
module Chargify class << self attr_accessor :subdomain, :api_key, :site, :format, :timeout, :domain, :protocol def configure yield self self.protocol = protocol || "https" self.domain = domain || "chargify.com" self.format = format || :xml self.subdomain = subdomain || "test" Base.user = api_key Base.password = 'X' Base.timeout = timeout unless (timeout.blank?) Base.site = site || "#{protocol}://#{subdomain}.#{domain}" Base.format = format end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chargify_api_ares-1.0.0 | lib/chargify_api_ares/config.rb |
chargify_api_ares-0.6.1 | lib/chargify_api_ares/config.rb |