module Finicity::Configurable
Constants
- KEYS
Public Instance Methods
configs()
click to toggle source
# File lib/finicity/configurable.rb, line 19 def configs @configs ||= begin hash = {} KEYS.each { |key| hash[key] = instance_variable_get(:"@#{key}") } Hashie::Mash.new(hash) end end
configure() { |self| ... }
click to toggle source
# File lib/finicity/configurable.rb, line 14 def configure yield self self end
redis_url=(url)
click to toggle source
# File lib/finicity/configurable.rb, line 9 def redis_url=(url) @redis_url = url @redis = Redis.new(url: url) end