module Moolah::Configuration

Constants

DEFAULT_API_KEY
DEFAULT_API_SECRET
DEFAULT_ENDPOINT

Attributes

api_key[RW]
api_secret[RW]
endpoint[RW]
ipn[RW]

Public Class Methods

extended(mod) click to toggle source

When extended, call reset to set variable values to defaults

# File lib/moolah/configuration.rb, line 12
def self.extended(mod)
  mod.reset
end

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/moolah/configuration.rb, line 22
def configure
  yield self
end
reset() click to toggle source
# File lib/moolah/configuration.rb, line 16
def reset
  self.api_key = DEFAULT_API_KEY
  self.api_secret = DEFAULT_API_SECRET
  self.endpoint = DEFAULT_ENDPOINT
end