Class: Kumonos::Envoy::DiscoverService
- Inherits:
-
Struct
- Object
- Struct
- Kumonos::Envoy::DiscoverService
- Defined in:
- lib/kumonos/envoy.rb
Instance Attribute Summary collapse
-
#cluster ⇒ Object
Returns the value of attribute cluster.
-
#refresh_delay_ms ⇒ Object
Returns the value of attribute refresh_delay_ms.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cluster ⇒ Object
Returns the value of attribute cluster
75 76 77 |
# File 'lib/kumonos/envoy.rb', line 75 def cluster @cluster end |
#refresh_delay_ms ⇒ Object
Returns the value of attribute refresh_delay_ms
75 76 77 |
# File 'lib/kumonos/envoy.rb', line 75 def refresh_delay_ms @refresh_delay_ms end |
Class Method Details
.build(h) ⇒ Object
77 78 79 |
# File 'lib/kumonos/envoy.rb', line 77 def build(h) new(h.fetch('refresh_delay_ms'), Cluster.build(h.fetch('cluster'))) end |
Instance Method Details
#to_h ⇒ Object
82 83 84 85 86 |
# File 'lib/kumonos/envoy.rb', line 82 def to_h h = super h[:cluster] = cluster.to_h h end |