Class: Clerk::Models::Components::ProxyCheck
- Inherits:
-
Object
- Object
- Clerk::Models::Components::ProxyCheck
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/proxycheck.rb
Overview
Health check information about a domain’s proxy configuration validation attempt.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, domain_id:, proxy_url:, successful:, created_at:, updated_at:, last_run_at: nil) ⇒ ProxyCheck
constructor
A new instance of ProxyCheck.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, domain_id:, proxy_url:, successful:, created_at:, updated_at:, last_run_at: nil) ⇒ ProxyCheck
Returns a new instance of ProxyCheck.
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/clerk/models/components/proxycheck.rb', line 36 def initialize(object:, id:, domain_id:, proxy_url:, successful:, created_at:, updated_at:, last_run_at: nil) @object = object @id = id @domain_id = domain_id @proxy_url = proxy_url @successful = successful @created_at = created_at @updated_at = updated_at @last_run_at = last_run_at end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/clerk/models/components/proxycheck.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @domain_id == other.domain_id return false unless @proxy_url == other.proxy_url return false unless @successful == other.successful return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @last_run_at == other.last_run_at true end |