Class: RailsApiGuard::Config
- Inherits:
-
Object
- Object
- RailsApiGuard::Config
- Defined in:
- lib/rails_api_guard/config.rb
Instance Attribute Summary collapse
-
#excluded_patterns ⇒ Object
Returns the value of attribute excluded_patterns.
-
#expiry_time ⇒ Object
Returns the value of attribute expiry_time.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#slack_webhook_url ⇒ Object
Returns the value of attribute slack_webhook_url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
5 6 7 8 9 10 |
# File 'lib/rails_api_guard/config.rb', line 5 def initialize @excluded_patterns = [] @limit = 5 @expiry_time = 60 # in seconds @slack_webhook_url = nil end |
Instance Attribute Details
#excluded_patterns ⇒ Object
Returns the value of attribute excluded_patterns.
3 4 5 |
# File 'lib/rails_api_guard/config.rb', line 3 def excluded_patterns @excluded_patterns end |
#expiry_time ⇒ Object
Returns the value of attribute expiry_time.
3 4 5 |
# File 'lib/rails_api_guard/config.rb', line 3 def expiry_time @expiry_time end |
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/rails_api_guard/config.rb', line 3 def limit @limit end |
#slack_webhook_url ⇒ Object
Returns the value of attribute slack_webhook_url.
3 4 5 |
# File 'lib/rails_api_guard/config.rb', line 3 def slack_webhook_url @slack_webhook_url end |