Class: Metatron::Templates::TCPRoute::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/metatron/templates/tcp_route/rule.rb

Overview

Internal model for a TCPRoute rule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backend_refs:) ⇒ Rule

Returns a new instance of Rule.



10
11
12
# File 'lib/metatron/templates/tcp_route/rule.rb', line 10

def initialize(backend_refs:)
  @backend_refs = backend_refs
end

Instance Attribute Details

#backend_refsObject

Returns the value of attribute backend_refs.



8
9
10
# File 'lib/metatron/templates/tcp_route/rule.rb', line 8

def backend_refs
  @backend_refs
end

Instance Method Details

#renderObject



14
15
16
# File 'lib/metatron/templates/tcp_route/rule.rb', line 14

def render
  { backendRefs: backend_refs }
end