def actions
      lambda do |reason, data|
        Rails.logger.debug "Execute block code with reason : #{reason}"
        case reason
        when event then case_events(data.to_hash)
        end
      end
    end
def actions
      lambda do |reason, data|
        Rails.logger.debug "Execute block code with reason : #{reason}"
        case reason
        when event then case_events(data.to_hash)
        end
      end
    end
Default method using for sending a block of code