Class: Approval::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.


6
7
8
9
10
# File 'lib/approval/config.rb', line 6

def initialize
  @user_class_name = "User"
  @comment_maximum = 2000
  @permit_to_respond_to_own_request = false
end

Instance Attribute Details

#comment_maximumObject

Returns the value of attribute comment_maximum


3
4
5
# File 'lib/approval/config.rb', line 3

def comment_maximum
  @comment_maximum
end

#permit_to_respond_to_own_requestObject

Returns the value of attribute permit_to_respond_to_own_request


3
4
5
# File 'lib/approval/config.rb', line 3

def permit_to_respond_to_own_request
  @permit_to_respond_to_own_request
end

#user_class_nameObject

Returns the value of attribute user_class_name


3
4
5
# File 'lib/approval/config.rb', line 3

def user_class_name
  @user_class_name
end

Instance Method Details

#permit_to_respond_to_own_request?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/approval/config.rb', line 12

def permit_to_respond_to_own_request?
  !!permit_to_respond_to_own_request
end