Class: Legate::Configuration::Webhooks::RouteConfig
- Inherits:
-
Object
- Object
- Legate::Configuration::Webhooks::RouteConfig
- Defined in:
- lib/legate/configuration/webhooks.rb
Overview
Internal class to hold configuration for a single static route.
Instance Attribute Summary collapse
-
#handler ⇒ Proc?
The handler proc for the route.
-
#secret ⇒ String?
The secret key for this static route’s validator.
-
#validator ⇒ Symbol, ...
A specific validator for this static route.
Instance Method Summary collapse
-
#initialize ⇒ RouteConfig
constructor
A new instance of RouteConfig.
Constructor Details
#initialize ⇒ RouteConfig
Returns a new instance of RouteConfig.
105 106 107 108 109 |
# File 'lib/legate/configuration/webhooks.rb', line 105 def initialize @handler = nil @validator = nil @secret = nil end |
Instance Attribute Details
#handler ⇒ Proc?
Returns The handler proc for the route. Should return a Rack response array.
99 100 101 |
# File 'lib/legate/configuration/webhooks.rb', line 99 def handler @handler end |
#secret ⇒ String?
Returns The secret key for this static route’s validator.
103 104 105 |
# File 'lib/legate/configuration/webhooks.rb', line 103 def secret @secret end |
#validator ⇒ Symbol, ...
Returns A specific validator for this static route.
101 102 103 |
# File 'lib/legate/configuration/webhooks.rb', line 101 def validator @validator end |