Class: ActionHooks::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/action_hooks/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_ipsObject 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

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/action_hooks/configuration.rb', line 7

def name
  @name
end

#verify_signatureObject

Returns the value of attribute verify_signature.



7
8
9
# File 'lib/action_hooks/configuration.rb', line 7

def verify_signature
  @verify_signature
end

#workerObject

Returns the value of attribute worker.



7
8
9
# File 'lib/action_hooks/configuration.rb', line 7

def worker
  @worker
end