class NgrokAPI::Models::EndpointCircuitBreaker

Attributes

attrs[R]
client[R]
enabled[R]
error_threshold_percentage[R]
num_buckets[R]
rolling_window[R]
tripped_duration[R]
volume_threshold[R]

Public Class Methods

new(client: nil, attrs: {}) click to toggle source
# File lib/ngrokapi/models/endpoint_circuit_breaker.rb, line 15
def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @enabled = @attrs['enabled']
  @tripped_duration = @attrs['tripped_duration']
  @rolling_window = @attrs['rolling_window']
  @num_buckets = @attrs['num_buckets']
  @volume_threshold = @attrs['volume_threshold']
  @error_threshold_percentage = @attrs['error_threshold_percentage']
end

Public Instance Methods

==(other) click to toggle source
# File lib/ngrokapi/models/endpoint_circuit_breaker.rb, line 26
def ==(other)
  @attrs == other.attrs
end
to_h() click to toggle source
# File lib/ngrokapi/models/endpoint_circuit_breaker.rb, line 34
def to_h
  @attrs.to_h
end
to_s() click to toggle source
# File lib/ngrokapi/models/endpoint_circuit_breaker.rb, line 30
def to_s
  @attrs.to_s
end