Class: Enjoy::Feedback::Configuration
- Inherits:
-
Object
- Object
- Enjoy::Feedback::Configuration
- Defined in:
- lib/enjoy/feedback/configuration.rb
Instance Attribute Summary collapse
-
#breadcrumbs_on_rails_support ⇒ Object
Returns the value of attribute breadcrumbs_on_rails_support.
-
#captcha ⇒ Object
Returns the value of attribute captcha.
-
#captcha_error_message ⇒ Object
Returns the value of attribute captcha_error_message.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#message_required ⇒ Object
Returns the value of attribute message_required.
-
#no_contact_info_error_message ⇒ Object
Returns the value of attribute no_contact_info_error_message.
-
#recaptcha_support ⇒ Object
Returns the value of attribute recaptcha_support.
-
#recreate_contact_message_action ⇒ Object
Returns the value of attribute recreate_contact_message_action.
-
#simple_captcha_support ⇒ Object
Returns the value of attribute simple_captcha_support.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/enjoy/feedback/configuration.rb', line 28 def initialize @captcha = false @fields = {} @message_required = true @captcha_error_message = "Код проверки введен неверно" @no_contact_info_error_message = "Пожалуйста введите Ваш e-mail или телефон, чтобы мы могли связаться с вами." @recreate_contact_message_action = "new" @breadcrumbs_on_rails_support = defined?(BreadcrumbsOnRails) @recaptcha_support = defined?(Recaptcha) @simple_captcha_support = defined?(SimpleCaptcha) end |
Instance Attribute Details
#breadcrumbs_on_rails_support ⇒ Object
Returns the value of attribute breadcrumbs_on_rails_support.
23 24 25 |
# File 'lib/enjoy/feedback/configuration.rb', line 23 def @breadcrumbs_on_rails_support end |
#captcha ⇒ Object
Returns the value of attribute captcha.
14 15 16 |
# File 'lib/enjoy/feedback/configuration.rb', line 14 def captcha @captcha end |
#captcha_error_message ⇒ Object
Returns the value of attribute captcha_error_message.
18 19 20 |
# File 'lib/enjoy/feedback/configuration.rb', line 18 def @captcha_error_message end |
#fields ⇒ Object
Returns the value of attribute fields.
15 16 17 |
# File 'lib/enjoy/feedback/configuration.rb', line 15 def fields @fields end |
#message_required ⇒ Object
Returns the value of attribute message_required.
16 17 18 |
# File 'lib/enjoy/feedback/configuration.rb', line 16 def @message_required end |
#no_contact_info_error_message ⇒ Object
Returns the value of attribute no_contact_info_error_message.
19 20 21 |
# File 'lib/enjoy/feedback/configuration.rb', line 19 def @no_contact_info_error_message end |
#recaptcha_support ⇒ Object
Returns the value of attribute recaptcha_support.
25 26 27 |
# File 'lib/enjoy/feedback/configuration.rb', line 25 def recaptcha_support @recaptcha_support end |
#recreate_contact_message_action ⇒ Object
Returns the value of attribute recreate_contact_message_action.
21 22 23 |
# File 'lib/enjoy/feedback/configuration.rb', line 21 def @recreate_contact_message_action end |
#simple_captcha_support ⇒ Object
Returns the value of attribute simple_captcha_support.
26 27 28 |
# File 'lib/enjoy/feedback/configuration.rb', line 26 def simple_captcha_support @simple_captcha_support end |