Class: Moov::Models::Components::PatchBusiness

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(legal_business_name: nil, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, owners_provided: nil, industry_codes: nil, primary_regulator: nil) ⇒ PatchBusiness

Returns a new instance of PatchBusiness.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/moov/models/components/patchbusiness.rb', line 42

def initialize(legal_business_name: nil, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, owners_provided: nil, industry_codes: nil, primary_regulator: nil)
  @legal_business_name = legal_business_name
  @doing_business_as = doing_business_as
  @business_type = business_type
  @address = address
  @phone = phone
  @email = email
  @website = website
  @description = description
  @tax_id = tax_id
  @owners_provided = owners_provided
  @industry_codes = industry_codes
  @primary_regulator = primary_regulator
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/moov/models/components/patchbusiness.rb', line 58

def ==(other)
  return false unless other.is_a? self.class
  return false unless @legal_business_name == other.legal_business_name
  return false unless @doing_business_as == other.doing_business_as
  return false unless @business_type == other.business_type
  return false unless @address == other.address
  return false unless @phone == other.phone
  return false unless @email == other.email
  return false unless @website == other.website
  return false unless @description == other.description
  return false unless @tax_id == other.tax_id
  return false unless @owners_provided == other.owners_provided
  return false unless @industry_codes == other.industry_codes
  return false unless @primary_regulator == other.primary_regulator
  true
end