Class: Clerk::Models::Components::DNSTarget

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/dnstarget.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(host:, value:, record_type:, required:, automation_disposition: nil) ⇒ DNSTarget

Returns a new instance of DNSTarget.



28
29
30
31
32
33
34
# File 'lib/clerk/models/components/dnstarget.rb', line 28

def initialize(host:, value:, record_type:, required:, automation_disposition: nil)
  @host = host
  @value = value
  @record_type = record_type
  @required = required
  @automation_disposition = automation_disposition
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/clerk/models/components/dnstarget.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @host == other.host
  return false unless @value == other.value
  return false unless @record_type == other.record_type
  return false unless @required == other.required
  return false unless @automation_disposition == other.automation_disposition
  true
end