Class: Merit::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/merit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration


61
62
63
64
65
66
# File 'lib/merit.rb', line 61

def initialize
  @checks_on_each_request = true
  @orm = :active_record
  @user_model_name = 'User'
  @observers = []
end

Instance Attribute Details

#checks_on_each_requestObject

Returns the value of attribute checks_on_each_request


58
59
60
# File 'lib/merit.rb', line 58

def checks_on_each_request
  @checks_on_each_request
end

#current_user_methodObject

Returns the value of attribute current_user_method


58
59
60
# File 'lib/merit.rb', line 58

def current_user_method
  @current_user_method
end

#observersObject

Returns the value of attribute observers


58
59
60
# File 'lib/merit.rb', line 58

def observers
  @observers
end

#ormObject

Returns the value of attribute orm


58
59
60
# File 'lib/merit.rb', line 58

def orm
  @orm
end

#user_model_nameObject

Returns the value of attribute user_model_name


58
59
60
# File 'lib/merit.rb', line 58

def user_model_name
  @user_model_name
end

Instance Method Details

#add_observer(class_name) ⇒ Object


68
69
70
# File 'lib/merit.rb', line 68

def add_observer(class_name)
  @observers << class_name
end