class RubyRabbitmqJanus::Models::JanusInstance

@author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>

Store instance information for MongoID database

@author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>

Store instance information for MongoID database

Public Instance Methods

set(attributes) click to toggle source

Update attributes to document

@param attributes [Hash] List of attribute to update with this value

@return [Hash] Current model

# File lib/rrj/models/active_record.rb, line 25
def set(attributes)
  update_columns(attributes)
end
unset(attributes) click to toggle source

Destroy data to column

@param attributes [Array] List to attribute to delete in document

@return [Hash] Current model

# File lib/rrj/models/active_record.rb, line 35
def unset(attributes)
  [attributes.map { |key, _value| [key, nil] }].to_h
end