Class: RailsApiGuard::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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