# frozen_string_literal: true module RubyRabbitmqJanus module Models # @author VAILLANT Jeremy # # Store instance information for MongoID database class JanusInstance < ::ActiveRecord::Base include RubyRabbitmqJanus::Models::JanusInstanceCallbacks include RubyRabbitmqJanus::Models::JanusInstanceMethods include RubyRabbitmqJanus::Models::JanusInstanceValidations alias_attribute :instance, :id alias_attribute :session_id, :session alias_attribute :thread_id, :thread after_create { callback_create_after } after_update { callback_update_after } after_destroy { callback_destroy_after } private # Update attributes to document # # @param [Hash] List of attribute to update with this value def set(attributes) update_columns(attributes) end end end end