Class: Moov::Models::Components::CustomerSupportError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/customersupporterror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(phone: nil, email: nil, address: nil, website: nil) ⇒ CustomerSupportError

Returns a new instance of CustomerSupportError.



26
27
28
29
30
31
# File 'lib/moov/models/components/customersupporterror.rb', line 26

def initialize(phone: nil, email: nil, address: nil, website: nil)
  @phone = phone
  @email = email
  @address = address
  @website = website
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/moov/models/components/customersupporterror.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @phone == other.phone
  return false unless @email == other.email
  return false unless @address == other.address
  return false unless @website == other.website
  true
end