Class: Metatron::Templates::TLSRoute::Rule
- Inherits:
-
Object
- Object
- Metatron::Templates::TLSRoute::Rule
- Defined in:
- lib/metatron/templates/tls_route/rule.rb
Overview
Internal model for a TLSRoute rule
Instance Attribute Summary collapse
-
#backend_refs ⇒ Object
Returns the value of attribute backend_refs.
Instance Method Summary collapse
-
#initialize(backend_refs:) ⇒ Rule
constructor
A new instance of Rule.
- #render ⇒ Object
Constructor Details
#initialize(backend_refs:) ⇒ Rule
Returns a new instance of Rule.
10 11 12 |
# File 'lib/metatron/templates/tls_route/rule.rb', line 10 def initialize(backend_refs:) @backend_refs = backend_refs end |
Instance Attribute Details
#backend_refs ⇒ Object
Returns the value of attribute backend_refs.
8 9 10 |
# File 'lib/metatron/templates/tls_route/rule.rb', line 8 def backend_refs @backend_refs end |
Instance Method Details
#render ⇒ Object
14 15 16 |
# File 'lib/metatron/templates/tls_route/rule.rb', line 14 def render { backendRefs: backend_refs } end |