Class: Moov::Models::Components::CreateBusinessProfile
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateBusinessProfile
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createbusinessprofile.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(legal_business_name:, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, industry_codes: nil, primary_regulator: nil) ⇒ CreateBusinessProfile
constructor
A new instance of CreateBusinessProfile.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(legal_business_name:, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: nil, industry_codes: nil, primary_regulator: nil) ⇒ CreateBusinessProfile
Returns a new instance of CreateBusinessProfile.
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/moov/models/components/createbusinessprofile.rb', line 40 def initialize(legal_business_name:, doing_business_as: nil, business_type: nil, address: nil, phone: nil, email: nil, website: nil, description: nil, tax_id: 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 @industry_codes = industry_codes @primary_regulator = primary_regulator end |
Instance Method Details
#==(other) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/moov/models/components/createbusinessprofile.rb', line 55 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 @industry_codes == other.industry_codes return false unless @primary_regulator == other.primary_regulator true end |