Sha256: c34a3d4ae0fe1763a8a5f8965d26063c46bb8191a87ce9f61be4a8a04857de05
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
require 'moolah/version' module Moolah module Configuration DEFAULT_ENDPOINT = "https://api.moolah.io" DEFAULT_API_KEY = nil DEFAULT_API_SECRET = nil attr_accessor :api_key, :api_secret, :ipn, :endpoint # When extended, call reset to set variable values to defaults def self.extended(mod) mod.reset end def reset self.api_key = DEFAULT_API_KEY self.api_secret = DEFAULT_API_SECRET self.endpoint = DEFAULT_ENDPOINT end def configure yield self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moolah-ruby-0.1 | lib/moolah/configuration.rb |
moolah-ruby-0.0.1 | lib/moolah/configuration.rb |