Class: Moov::Models::Components::BusinessProfile

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

Overview

Describes a business.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(legal_business_name:, owners_provided:, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id_provided: nil, representatives: nil, industry_codes: nil, industry: nil, primary_regulator: nil) ⇒ BusinessProfile

Returns a new instance of BusinessProfile.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/moov/models/components/businessprofile.rb', line 45

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

Instance Method Details

#==(other) ⇒ Object



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/moov/models/components/businessprofile.rb', line 63

def ==(other)
  return false unless other.is_a? self.class
  return false unless @legal_business_name == other.legal_business_name
  return false unless @owners_provided == other.owners_provided
  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_provided == other.tax_id_provided
  return false unless @representatives == other.representatives
  return false unless @industry_codes == other.industry_codes
  return false unless @industry == other.industry
  return false unless @primary_regulator == other.primary_regulator
  true
end