module Transaction
Constants
- DEFAULT_ATTRIBUTES
- STATUSES
- VERSION
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/transaction.rb, line 16 def self.configure yield self end
pubsub_client()
click to toggle source
# File lib/transaction.rb, line 40 def self.pubsub_client return if @client.nil? || @trigger.nil? { client: @client, trigger: @trigger, event: @event, channel_name: @channel_name } end
pubsub_client=(client:, trigger:, channel_name: nil, event: 'status')
click to toggle source
# File lib/transaction.rb, line 33 def self.pubsub_client=(client:, trigger:, channel_name: nil, event: 'status') @client = client @trigger = trigger @event = event @channel_name = channel_name end
redis()
click to toggle source
# File lib/transaction.rb, line 28 def self.redis # use default redis if not set @redis ||= Redis.new end
redis=(hash = {})
click to toggle source
# File lib/transaction.rb, line 20 def self.redis=(hash = {}) @redis = if hash.instance_of?(Redis) hash else Redis.new(hash) end end