Class: Legate::Configuration::Webhooks::RouteConfig

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

Overview

Internal class to hold configuration for a single static route.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRouteConfig

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

#handlerProc?

Returns The handler proc for the route. Should return a Rack response array.

Returns:

  • (Proc, nil)

    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

#secretString?

Returns The secret key for this static route’s validator.

Returns:

  • (String, nil)

    The secret key for this static route’s validator.



103
104
105
# File 'lib/legate/configuration/webhooks.rb', line 103

def secret
  @secret
end

#validatorSymbol, ...

Returns A specific validator for this static route.

Returns:

  • (Symbol, Proc, nil)

    A specific validator for this static route.



101
102
103
# File 'lib/legate/configuration/webhooks.rb', line 101

def validator
  @validator
end