Class: ActionHooks::Source
- Inherits:
-
Object
- Object
- ActionHooks::Source
- Defined in:
- lib/action_hooks/configuration.rb
Instance Attribute Summary collapse
-
#allowed_ips ⇒ Object
(also: #allowed_hosts)
Returns the value of attribute allowed_ips.
-
#name ⇒ Object
Returns the value of attribute name.
-
#verify_signature ⇒ Object
Returns the value of attribute verify_signature.
-
#worker ⇒ Object
Returns the value of attribute worker.
Instance Method Summary collapse
-
#initialize(name) ⇒ Source
constructor
A new instance of Source.
Constructor Details
#initialize(name) ⇒ Source
Returns a new instance of Source.
11 12 13 14 15 |
# File 'lib/action_hooks/configuration.rb', line 11 def initialize(name) @name = name @verify_signature = ->(_request) { true } @allowed_ips = [] end |
Instance Attribute Details
#allowed_ips ⇒ Object Also known as: allowed_hosts
Returns the value of attribute allowed_ips.
7 8 9 |
# File 'lib/action_hooks/configuration.rb', line 7 def allowed_ips @allowed_ips end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/action_hooks/configuration.rb', line 7 def name @name end |
#verify_signature ⇒ Object
Returns the value of attribute verify_signature.
7 8 9 |
# File 'lib/action_hooks/configuration.rb', line 7 def verify_signature @verify_signature end |
#worker ⇒ Object
Returns the value of attribute worker.
7 8 9 |
# File 'lib/action_hooks/configuration.rb', line 7 def worker @worker end |